Microsoft Outlook - activate Out of Office

Hello community,

I would like to activate the Out of Office settings in Microsoft Outlook / Office 365 via a scenario.
It should be possible to define the automatic responses.

Does anyone have any ideas on how I can implement this?
I have not found an action for this in the available Microsoft modules.

I just need tips, not a service provider to implement this for me.

Thank you very much!

Using the Microsoft Graph REST API,

You should be able to set the “Out of Office” automatic reply settings via the “/mailboxSettings” endpoint:

PATCH /me/mailboxSettings
PATCH /users/{id|userPrincipalName}/mailboxSettings

In the request body, send a property automaticRepliesSetting that contains the following:

"automaticRepliesSetting": {
  "externalAudience": "String",
  "externalReplyMessage": "string",
  "internalReplyMessage": "string",
  "scheduledEndDateTime": {"@odata.type": "microsoft.graph.dateTimeTimeZone"},
  "scheduledStartDateTime": {"@odata.type": "microsoft.graph.dateTimeTimeZone"},
  "status": "String"
}
3 Likes