【发布时间】:2018-10-26 07:51:22
【问题描述】:
我们目前正在开发一个 Outlook 插件,它需要列出与电子邮件或约会相关联的电子邮件地址。
我们在电子邮件部分实现这一点没有问题,但约会更具挑战性,因为 Office.context.mailbox.item 始终指向 AppointmentCompose 对象,当我们尝试将其强制转换为 AppointmentRead 时,它会返回以下错误:
Office.cast.item.toAppointment(Office.context.mailbox.item)
outlook-web-16.01.debug.js:10346 Uncaught Error: Sys.ArgumentTypeException:
Object cannot be converted to the required type.
为了记录,在这种情况下我们尝试投射的对象是一个已经存在的约会
这是正常行为吗?我们如何将 office.context.mailbox.item 转换为约会阅读?
感谢您的帮助。
问候。
【问题讨论】:
标签: office-js outlook-web-addins