The working days comparison is likely failing because of a format mismatch. Use this expression in your condition:
contains(split(toLower(items('Apply_to_each')?['WorkingDays']), ','), toLower(formatDateTime(utcNow(), 'ddd')))
This splits the working days into an array, lowercases everything, and checks if today's abbreviated day (e.g. "mon") is in the list. Make sure your WorkingDays column in the spreadsheet stores values like "Mon,Tue,Wed,Thu,Fri" (comma separated, no spaces).
Issue 2 - HTTP step failing with 405 Method Not Allowed
A 405 error means the URL or HTTP method is wrong, not a permissions issue. The most common mistake is calling PATCH on the wrong endpoint.
The correct call to enable OOO for another user is:
Method: PATCH
URL: https://graph.microsoft.com/v1.0/users/{userEmail}/mailboxSettings
Note: the URL must end in /mailboxSettings, not /mailboxSettings/automaticRepliesSetting. The sub-endpoint only supports GET, not PATCH, which is what causes the 405.
Body:
{
"automaticRepliesSetting": {
"status": "alwaysEnabled",
"internalReplyMessage": "your message here",
"externalReplyMessage": "your message here"
}
}
To disable use "status": "disabled"
Also worth knowing: to modify another user's mailbox settings you need MailboxSettings.ReadWrite configured as an application permission (not delegated) on your Entra ID app registration. If that is set as delegated it will return a 403 Forbidden, not a 405, but worth checking once the URL is corrected.
Can you share a screenshot of your current HTTP action so we can confirm the URL and method you are using?
Best regards,
Valantis
✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.
❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).
🏷️ For follow-ups @Valantis.
📝 https://valantisond365.com/