TLTan LeAI, cloud & automation for legacy systems · CalgaryLet’s talk
← All posts

Power Automate business case: shared mailbox attachments to SharePoint

A Power Automate flow that watches a shared mailbox for expense reports, saves attachments to a SharePoint library and marks each email read and complete.

From the archive · a 2021 working note, kept for reference.

Business case

  • Monitor a shared mailbox for messages that contain the words “expense report”
  • Save the attachment to a SharePoint library called ExpenseReports
  • Mark the email as read
  • Mark the email as complete

Solution

Enter a value for the flow name, then search the triggers for When a new email arrives in a shared mailbox (V2):

Build an automated cloud flow named Expense Reports with the trigger When a new email arrives in a shared mailbox

Select the SharePoint site:

Apply to each over the email attachments, with Create file saving each one to the SharePoint Shared Documents folder

Mark as read:

Mark as read or unread (V3) action marking the triggering email as read by its message ID

Flag the email:

Flag email (V2) action setting the triggering email's flag status to Complete

Result

Successful run of the Expense Reports flow: trigger, compose, save attachments, mark as read and flag email

SharePoint document library showing the attachment saved by the flow about a minute earlier

Expense Reports flow details page: turned on, Outlook and SharePoint connections, and a succeeded run in history

First published on tanldt.blogspot.com on Jul 14, 2021.