桌面 Outlook 添加电子邮件空间问题

问题描述

Hello Team,We have built Outlook Add-In project using this Add-In  from Send to Sugar Tab we are creating Cases in Sugar CRM using REST API Custom endpoint 

Below is some part of code 
1.  To access outlook email item 
var items=Office.context.mailBox.item;

2.  To feting body of selected email  
item.body.getAsync('html',{ asyncContext: jsonData },function (result) {


Please refer attached email item for to  get email body details
1.  Email body in Web Platform 
  <html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:x=\"urn:schemas-microsoft-com:office:excel\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\"><head><Meta name=Generator content=\"Microsoft Word 15 (filtered medium)\"><style><!--\r\n/* Font DeFinitions */\r\n@font-face\r\n\t{font-family:\"Cambria Math\";\r\n\tpanose-1:2 4 5 3 5 4 6 3 2 4;}\r\n@font-face\r\n\t{font-family:Calibri;\r\n\tpanose-1:2 15 5 2 2 2 4 3 2 4;}\r\n/* Style DeFinitions */\r\np.Msonormal,li.Msonormal,div.Msonormal\r\n\t{margin:0cm;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\nspan.EmailStyle17\r\n\t{mso-style-type:personal-compose;\r\n\tfont-family:\"Calibri\",sans-serif;\r\n\tcolor:windowtext;}\r\np.xxxxmsonormal,li.xxxxmsonormal,div.xxxxmsonormal\r\n\t{mso-style-name:x_x_x_xmsonormal;\r\n\tmargin:0cm;\r\n\tmargin-bottom:.0001pt;\r\n\tfont-size:11.0pt;\r\n\tfont-family:\"Calibri\",sans-serif;}\r\n.MsoChpDefault\r\n\t{mso-style-type:export-only;\r\n\tfont-family:\"Calibri\",sans-serif;\r\n\tmso-fareast-language:EN-US;}\r\n@page WordSection1\r\n\t{size:612.0pt 792.0pt;\r\n\tmargin:72.0pt 72.0pt 72.0pt 72.0pt;}\r\ndiv.WordSection1\r\n\t{page:WordSection1;}\r\n--></style><!--[if gte mso 9]><xml>\r\n<o:shapedefaults v:ext=\"edit\" spidmax=\"1026\" />\r\n</xml><![endif]--><!--[if gte mso 9]><xml>\r\n<o:shapelayout v:ext=\"edit\">\r\n<o:idmap v:ext=\"edit\" data=\"1\" />\r\n</o:shapelayout></xml><![endif]--></head><body lang=EN-IN link=\"#0563C1\" vlink=\"#954F72\"><div class=WordSection1><p class=xxxxmsonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>Eventualmente può valutare anche la fornitura in PE 500 Verde ?</span><o:p></o:p></p><p class=xxxxmsonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>Grazie.</span><o:p></o:p></p><p class=xxxxmsonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>&nbsp;</span><o:p></o:p></p><p class=xxxxmsonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>Cordiali Saluti.</span><o:p></o:p></p><p class=xxxxmsonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>&nbsp;</span><o:p></o:p></p><p class=Msonormal><span lang=IT style='font-size:12.0pt;font-family:\"Times New Roman\",serif'>Aldo Pomba.</span><o:p></o:p></p></div></body></html>          

2.  Email body in Desktop Outlook Client Platform
<div>\r\n<div lang=\"en-US\" link=\"#0563C1\" vlink=\"#954F72\" style=\"word-wrap:break-word;\">\r\n<div>\r\n<p style=\"font-size:11pt;font-family:Calibri,sans-serif;margin:0;\"><span lang=\"it\" style=\"font-size:12pt;font-family:Times New Roman,serif;\">Eventualmente può valutare anche la fornitura in PE 500 Verde ?</span><span lang=\"en-IN\"></span></p>\r\n<p style=\"font-size:11pt;font-family:Calibri,serif;\">Grazie.</span><span lang=\"en-IN\"></span></p>\r\n<p style=\"font-size:11pt;font-family:Calibri,serif;\">&nbsp;</span><span lang=\"en-IN\"></span></p>\r\n<p style=\"font-size:11pt;font-family:Calibri,serif;\">Cordiali Saluti.</span><span lang=\"en-IN\"></span></p>\r\n<p style=\"font-size:11pt;font-family:Calibri,serif;\">&nbsp;</span><span lang=\"en-IN\"></span></p>\r\n
阿尔多·庞巴。 我们正在从 Web 和桌面 Outlook 客户端平台创建案例,我们在 Web 平台上按预期获得电子邮件正文,但是从桌面 Outlook 客户端我们获得了额外的空间。

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)