Thanks, my subsequent searches discopvered a blog here, that described exactly that.
https://flow.microsoft.com/de-de/blog/canada-mailboxes-aad/
Adding the below condition is the real 'gem' that allows the process to work:
- Add a condition.
- Select edit in advanced more and add an expression like:
@not(empty(body('Get_mail_tips_for_a_mailbox')?['AutomaticReplies']?['Message'])) - The above condition means that the next action will only run if there is an automatic message present.
Im my case, i am using this function to set my own Out Of Office automatically every fortnight, and if one already exists, to send me an email/push notification to ask whether it should 'overwrite' the existing settings?
Regards,
Ivan