Outlook JS插件-撰写表单-如何检查事件/消息是否已保存? [英] Outlook JS Addin - Compose form - how to check if the event/message is saved?

查看:88
本文介绍了Outlook JS插件-撰写表单-如何检查事件/消息是否已保存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Outlook加载项(office.js)的组合表单中是否有一种方法可以检查表单后面的对象(在我的情况下为日历事件)是否已经保存?

Is there a way in the compose form of an Outlook Add-In (office.js) to check if the object behind the form (in my case a calendar event) is already saved?

推荐答案

检查ItemId;如果未定义,则消息未存储;如果存在,则消息来自草稿.请参考 Office.context.mailbox .item.itemId

Check the ItemId; if it's undefined the message was not stored, and if it exists the message is from Draft. Please refer to Office.context.mailbox.item.itemId

我不想完全删除答案,因为蒂姆·万(Tim Wan)在评论中提供了宝贵的意见.基本上,没有办法确定邮件是否在Exchange上持久存在,并且无法检查ItemId在撰写表单中是否起作用.

I don't want to delete the answer completely, because of the valuable input in comments from Tim Wan. Basically there is no way to identify if message was persisted on the Exchange and check for the ItemId doesn't work in compose forms.

这篇关于Outlook JS插件-撰写表单-如何检查事件/消息是否已保存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆