Microsoft graph api 如何创建传播到与会者副本的openType扩展?
我正在做一个预订房间的项目,我们需要使用一些扩展属性 我们一直在使用singleValueLegacyExtendedProperty,但正如我在另一个问题中所报告的,microsoft graph无法正确更新该值 () 我尝试在某些特定事件中使用graph explorer创建扩展: 当我检索此特定事件时,它是确定的,扩展属性在那里: 检索文件室事件时,扩展属性不存在(由于凭据,我必须使用postman,尽管我的用户具有对此文件室的代理访问权限,但我无法在graph explorer中使用凭据扩展扩展)Microsoft graph api 如何创建传播到与会者副本的openType扩展?,microsoft-graph-api,microsoft-graph-calendar,Microsoft Graph Api,Microsoft Graph Calendar,我正在做一个预订房间的项目,我们需要使用一些扩展属性 我们一直在使用singleValueLegacyExtendedProperty,但正如我在另一个问题中所报告的,microsoft graph无法正确更新该值 () 我尝试在某些特定事件中使用graph explorer创建扩展: 当我检索此特定事件时,它是确定的,扩展属性在那里: 检索文件室事件时,扩展属性不存在(由于凭据,我必须使用postman,尽管我的用户具有对此文件室的代理访问权限,但我无法在graph explorer中使用
我使用singleValueLegacyExtendedProperty找到了一个解决方法 我发现当你更改一些活动的相关信息,如标题、日期等时。。它迫使传播。 所以我所做的就是在活动标题的末尾放一个空格,如果活动的末尾有空格,我们就把它删除。 比如(使用c#sdk):
我找到了一个使用singleValueLegacyExtendedProperty的变通方法 我发现当你更改一些活动的相关信息,如标题、日期等时。。它迫使传播。 所以我所做的就是在活动标题的末尾放一个空格,如果活动的末尾有空格,我们就把它删除。 比如(使用c#sdk):
...
GraphServiceClient calendarService = await _microsoftAuth.AuthenticateService(calendarConfiguration);
if (!string.IsNullOrEmpty(eventData.Title) && eventData.Title.EndsWith(' '))
{
eventData.Title = eventData.Title.Remove(eventData.Title.Length - 1);
}
else
{
eventData.Title += " ";
}
Event toUpdate = new Event
{
Id = eventData.EventId,
Subject = eventData.Title,
SingleValueExtendedProperties = EventExtensionsMapper.Map(eventData),
};
var updateResult = await calendarService.Users[calendar.Email].Events[toUpdate.Id].Request().UpdateAsync(toUpdate)
...