我可以通过添加`''''''''''''' `在标题中?
Office.js标识符中的问题
是可变的。如果电子邮件更改其位置(从草稿到已发送的E.TC),它们总是会更改。我想用于我的加载项标识符,什么是不变的。
在Graph.api中的Graph API中
,您可以使用不变的标识符 link >要允许他们“工作”需要将标题添加到REST呼叫(标题为优先:Idtype =“ ImmutableId”
),
所以问题是
我可以设置相同的标头(preece:idtype =“ immutableableIdId) “
)to Office.js?用于使用该office.interneTheaders.setAsync()
方法使标识符不可变?
Problem
In office.js identifiers are mutable .They always changes if email changed its location(from Draft to Sent e.tc ).I want to use for my add-in identifiers what are immutable.
In Graph api
In graph.api you can use immutable identifiers link to allow them "work" need to add header to REST calls (header is Prefer: IdType="ImmutableId"
)
So question is
Can I set same header(Prefer: IdType="ImmutableId"
) to office.js ?Using for that Office.InternetHeaders.setAsync()
method to make identifiers immutable?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编号InternEtheaders.setAsync()。用于设置传出邮件的智能者。
您引用的指令添加
优先:idtype =“ ImmutableId”
在您进行休息时指的是标题,并且不此地不再重新添加到Office.js apis。不变的ID不与任何Office.JS API一起使用。唯一可用的项目是EWSID通过office.context.mailbox.item.itemid。但是,正如您指出的那样,如果项目切换文件夹,则EWSID将会更改。
您可以使用图形/休息将ewsid转化为不变的: https://learn.microsoft.com/en-us/graph/api/papi/user-user-user-translateexchangeids?view=graph-Rest-Rest-Rest-Rest-Rest-Rest-REST-1.0时间&amp@amp@amp@amp@amp@amp@amp@,= http
但是Office.js输入/输出始终是EWSID的功能。
No. internetHeaders.SetAsync(). is used to set the internetHeaders of the Outgoing mail.
The instructions you referenced to add
Prefer: IdType="ImmutableId"
is referring to the headers when you make a REST call, and does not releate to office.js apis.Immutable IDs do not work with any office.js apis. The only itemID available is the EWSId via Office.context.mailbox.item.itemId. However, as you noted the EWSId will change if the item switches folders.
You may be able to use Graph/REST to translate the EWSId into immutable: https://learn.microsoft.com/en-us/graph/api/user-translateexchangeids?view=graph-rest-1.0&tabs=http
But Office.js inputs/outputs are always EWSId's in the function.