Office.Recipients(接口)GetAsync返回空而不是邮件地址

发布于 2025-02-06 23:12:41 字数 377 浏览 3 评论 0原文

Office收件人接口的“ getAsync”函数也会返回一个空的结果,即使已将地址添加到/cc/bcc字段中。

当您在to / cc / bcc字段中输入电子邮件地址时,然后打开scriptLab示例加载项(撰写消息),如果您单击“ get to to to to to to to”按钮,则返回一个空结果。收件人仍然没有解决应有的问题!

scriptlab getAsync

解决收件人的唯一方法是单击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!

ScriptLab GetAsync

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

往事随风而去 2025-02-13 23:12:41

Outlook Caches值,并且不会传播对象模型的更改,直到将焦点移至UI上的另一个字段或保存项目。这是处理Outlook时的已知问题。

可能的解决方法是调用saveasync以获取更改,然后请求新值。因此,在获得代码中的收件人之前,您需要调用以下方法:

Office.context.mailbox.item.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:

Office.context.mailbox.item.saveAsync()
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文