如何解决桌面 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'> </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'> </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;\"> </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;\"> </span><span lang=\"en-IN\"></span></p>\r\n
阿尔多·庞巴。
我们正在从 Web 和桌面 Outlook 客户端平台创建案例,我们在 Web 平台上按预期获得电子邮件正文,但是从桌面 Outlook 客户端我们获得了额外的空间。版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。