
Announcements
Trigger:
Use the “When a new email arrives (V3)” trigger.
Set it up to only check when the e-mail is from your consultant and sent to you or whatever you prefer to limit it to only the ones applicable to the process.
Initialize Variables:
Extract the from email address and subject of the email.
Use the “Initialize variable” action to store the from address and subject into variables.
HTTP Request to Graph API:
Use the “HTTP” action to make a GET request to the Microsoft Graph API.
Construct the URL with the from address and subject extracted from the email:
Replace {shared_mailbox_id}, {sender_email}, and {subject_keyword} with the appropriate variables.
I think this is the correct HTTP request: GET https://graph.microsoft.com/v1.0/users/{shared_mailbox_id}/messages?$filter=from/emailAddress/address eq '{sender_email}' and contains(subject, '{subject_keyword}')
Parse JSON:
Parse the response from the Graph API to check if there are any matching emails in the shared mailbox.
Use the “Parse JSON” action to handle the response.
Condition:
Use a condition to check if the shared mailbox received the email.
Notify Yourself:
If the condition is met, send yourself a notification or an email using the “Send an email (V2)” action to notify yourself.