Office.Recipients(接口)GetAsync返回空而不是邮件地址
Office收件人接口的“ getAsync”函数也会返回一个空的结果,即使已将地址添加到/cc/bcc字段中。
当您在to / cc / bcc字段中输入电子邮件地址时,然后打开scriptLab示例加载项(撰写消息),如果您单击“ get to to to to to to to”按钮,则返回一个空结果。收件人仍然没有解决应有的问题!
解决收件人的唯一方法是单击tab/space或space或“;”; 。
当呼叫GetAsync时,应自动解决所有收件人。
The "getAsync" function of the office recipient interface returns an empty result even if adresses has been added to the to/cc/bcc field.
When you enter a email address in the to / cc / bcc field and then you open the ScriptLab sample Add-In (Compose Message To), if you click on the "Get who this is to" button, an empty result is returned. The recipients are still not resolved as they should!
The only way to resolve the recipients is to click on Tab/Space or ";".
When the getAsync is call, all recipients should be resolved automatically.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Outlook Caches值,并且不会传播对象模型的更改,直到将焦点移至UI上的另一个字段或保存项目。这是处理Outlook时的已知问题。
可能的解决方法是调用
saveasync
以获取更改,然后请求新值。因此,在获得代码中的收件人之前,您需要调用以下方法:Outlook caches values and doesn't propagate changes to the object model until the focus is moved to another field on the UI or the item is saved. This is a known issue when dealing with Outlook.
A possible workaround is to call the
SaveAsync
to get changes saved and then request new values. So, prior to getting recipients in the code you need to call the following method: