从Angular Add In中获取来自Outlook 365的电子邮件列表

发布于 2025-02-03 17:14:30 字数 237 浏览 2 评论 0原文

我们如何从Outlook 365中获得Angular插件的离线地址。我能够从单个邮件中获取电子邮件,但要从地址簿中获取所有存储的电子邮件。

代码获取单独的邮件地址

var mail = Office.context.mailbox.item;
console.log(mail.getEntitiesByType(Office.MailboxEnums.EntityType.Address));

How can we get offline addresses in angular plugin from outlook 365. I am able to get email from individual mail, but want to get all stored email from address book.

Code to get individual mail address

var mail = Office.context.mailbox.item;
console.log(mail.getEntitiesByType(Office.MailboxEnums.EntityType.Address));

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

别闹i 2025-02-10 17:14:30

Officejs没有为此提供任何东西。您需要使用ews(请参阅从Outlook加载项)或Graph api来调用Web服务,以获取更多信息。该加载项在Outlook中的当前选择的项目下工作,因此要获得的要多于您需要使用图形API

OfficeJS doesn't provide anything for that out of the box. You would need to use EWS (see Call web services from an Outlook add-in) or Graph API for getting more information. The add-in is working under the currently selected item in Outlook, so to get more than that you need to use Graph API.

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