创建 Outlook 事件并阻止转发
Create Outlook event and prevent forwarding
我想通过 Microsoft Graph api 创建日历(Outlook)事件并设置一些特定的响应选项。
在 (windows) Outlook 客户端中,我能够 enable/disable
- 请求响应
- 允许新的时间建议
- 允许转发
在文档中我只能找到 enable/disable "Request Response" https://docs.microsoft.com/en-us/graph/api/user-post-events 的属性?但不是后来的。
问题是如何enable/disable时间建议和转发?
我尝试将灵敏度设置为 "personal"、"private" 和 "confidential",但没有帮助。
您可以通过扩展 属性 DoNotForward
来做到这一点。这具有以下 属性 定义:
PropertySet: 00020329-0000-0000-C000-000000000046
Name: DoNotForward
Type: Boolean
Here is an example 我为此而写。
允许时间建议为:
PropertySet:00062002-0000-0000-C000-000000000046
Name: AppointmentNotAllowPropose
Type: Boolean
使用 ms-graph-sdk for dotnet 以下代码有效:
var e = new Event()
{
Subject = "subject",
Start = new DateTimeTimeZone()
{
DateTime = dateTimeTimestamp1,
TimeZone = "Europe/Berlin"
},
End = new DateTimeTimeZone()
{
DateTime = dateTimeTimestamp2,
TimeZone = "Europe/Berlin"
},
SingleValueExtendedProperties = new EventSingleValueExtendedPropertiesCollectionPage()
{
new SingleValueLegacyExtendedProperty
{
Id = "Boolean {00020329-0000-0000-C000-000000000046} Name DoNotForward",
Value = "true"
},
new SingleValueLegacyExtendedProperty
{
Id = "Boolean {00062002-0000-0000-C000-000000000046} Id 0x825A",
Value = "true"
}
}
};
AppointmentNotAllowPropose
在这里由 id 引用,因为通过它的名称设置值不知何故没有效果。
我想通过 Microsoft Graph api 创建日历(Outlook)事件并设置一些特定的响应选项。 在 (windows) Outlook 客户端中,我能够 enable/disable
- 请求响应
- 允许新的时间建议
- 允许转发
在文档中我只能找到 enable/disable "Request Response" https://docs.microsoft.com/en-us/graph/api/user-post-events 的属性?但不是后来的。
问题是如何enable/disable时间建议和转发?
我尝试将灵敏度设置为 "personal"、"private" 和 "confidential",但没有帮助。
您可以通过扩展 属性 DoNotForward
来做到这一点。这具有以下 属性 定义:
PropertySet: 00020329-0000-0000-C000-000000000046
Name: DoNotForward
Type: Boolean
Here is an example 我为此而写。
允许时间建议为:
PropertySet:00062002-0000-0000-C000-000000000046
Name: AppointmentNotAllowPropose
Type: Boolean
使用 ms-graph-sdk for dotnet 以下代码有效:
var e = new Event()
{
Subject = "subject",
Start = new DateTimeTimeZone()
{
DateTime = dateTimeTimestamp1,
TimeZone = "Europe/Berlin"
},
End = new DateTimeTimeZone()
{
DateTime = dateTimeTimestamp2,
TimeZone = "Europe/Berlin"
},
SingleValueExtendedProperties = new EventSingleValueExtendedPropertiesCollectionPage()
{
new SingleValueLegacyExtendedProperty
{
Id = "Boolean {00020329-0000-0000-C000-000000000046} Name DoNotForward",
Value = "true"
},
new SingleValueLegacyExtendedProperty
{
Id = "Boolean {00062002-0000-0000-C000-000000000046} Id 0x825A",
Value = "true"
}
}
};
AppointmentNotAllowPropose
在这里由 id 引用,因为通过它的名称设置值不知何故没有效果。