Reputation: 103
I am using ASP.Net Core 3.1 and Microsoft Graph Beta 0.15. How can i delete the recurrence settings of an event.
I tried by setting the Recurrence
property to null but it has no effect.
Event graph = new Event();
...
event.Recurrence = null;
await graphServiceClient.Me.Events[id].Request().UpdateAsync(event);
This is possible by executing a PATCH request through the Microsoft Graph Explorer as mentioned in this post
PATCH https://graph.microsoft.com/beta/users/me/events/{id}
Content-type: application/json
{
"recurrence": null,
}
Any help will be appreciated, Thanks
Upvotes: 2
Views: 208
Reputation: 41
Try using AdditionalData property
var additionalData = new Dictionary<string, object>();
additionalData.Add("recurrence", null);
event.AdditionalData = additionalData;
Upvotes: 4