You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, structural properties that can be accessed through the URI are not accessible through the SDK at the moment and should be resolved in future metadata updates.
You can however workaround this by using the request builders as below.
varmailboxSettings=newMailboxSettings{AutomaticRepliesSetting=newAutomaticRepliesSetting{ScheduledStartDateTime=newDateTimeTimeZone(),ScheduledEndDateTime=newDateTimeTimeZone()}};varrequestInformation=graphServiceClient.Users["{o365UserID}"].ToGetRequestInformation();requestInformation.HttpMethod=Method.PATCH;requestInformation.UrlTemplate="{+baseurl}/users/{user%2Did}/mailboxSettings";//update the template to include /mailBoxSettingsrequestInformation.SetContentFromParsable<MailboxSettings>(graphServiceClient.RequestAdapter,"application/json",mailboxSettings);awaitgraphServiceClient.RequestAdapter.SendNoContentAsync(requestInformation);
Describe the bug
According to the documentation the endpoint to update mailbox settings is
But SDK v5 doesn't have any
MailboxSettings
property on eitherUserItemRequestBuilder
orMeRequestBuilder
To Reproduce
Steps to reproduce the behavior:
graphClient.Me.MailboxSettings
orgraphClient.Users[""].MailboxSettings
Expected behavior
Can access
MailboxSettings
property on eitherUserItemRequestBuilder
orMeRequestBuilder
Screenshots
If applicable, add screenshots to help explain your problem.
Client version
5.1.0.0
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: