web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How to process existin...
Power Automate
Answered

How to process existing emails in shared mailbox?

(0) ShareShare
ReportReport
Posted on by 13

I have a Flow whose trigger is When a new email arrives in a shared mailbox (V2). This is operating against a shared O365 mailbox. For each new email, this flow creates an item in a SharePoint list, while enriching that item with certain additional values fetched from another endpoint. In effect, this allows the mailbox owner to use SharePoint to search the mailbox based on attributes not actually present in the original emails. This flow works fine.

 

But there is a lot of existing email -- that is, emails created before the flow was created -- that I also need to get into that list. I don't see a way to do this short of writing a lot of node or Java to grab the old emails through Graph or REST, and populate the list through REST. There doesn't appear to be a way to write a flow to open a shared mailbox and act on certain existing records in the Inbox.

Categories:
I have the same question (0)
  • Verified answer
    v-yujincui-msft Profile Picture
    on at

    Hi @CatCarrier ,

     

    Do you want to get emails from Shared Mailbox?

    If you want to achieve like this, it seems that there is no out-of-box Action to achieve this in Power Automate currently.

     

    Except for the operations with shared mailbox in their titles, the other operations do not support shared mailboxes as of yet. 

     

    Shared Mailbox Support:

    For operations that don't support shared mailboxes yet, you can use a workaround with the Invoke an HTTP request action under the HTTP with Azure AD connector. When creating a connection for the HTTP with Azure AD connector, input text https://graph.microsoft.com/ for both Azure AD Resource URI and Base Resource URL connection parameters. After it's created, you can go to Outlook mail REST API to set the URL, and optionally the request body to call its shared mailbox APIs. Some of the Outlook functions will only be available on the beta version of Graph API. The HTTP with Azure AD connector is a premium connector and won't be available if you are using the free version of Microsoft Power Automate.

     

    If you like this feature and want it could be possible in the future, you could head to IDEA forum to vote for this idea:

    https://powerusers.microsoft.com/t5/Power-Automate-Ideas/Get-Emails-from-Shared-Mailbox/idi-p/135176#M8462

     

    In addition, here are some links might help you:

    https://docs.microsoft.com/en-us/connectors/office365/#shared-mailbox-support

    https://powerusers.microsoft.com/t5/Using-Connectors/Get-Emails-from-Shared-Mailbox/m-p/86430

    https://powerusers.microsoft.com/t5/General-Power-Automate/Get-email-from-shared-mailbox-Invalid-Mailbox-ID/m-p/486261

     

    Best Regards,

    Charlie Choi

     

     

     

     

  • mjburley Profile Picture
    370 on at

    One hack I have used in the past is to connect the shared mailbox to your Outlook email client (by default nowadays if you are an owner of the shared mailbox), then move all the old emails out of the shared folder in to a temp folder in your Outlook, and then move them back in again. This should trigger the Flow as 'new' items have landed in the shared mailbox.

     

    Have not done this for a while, so best to try with one email first to make sure it still works !

  • VictorIvanidze Profile Picture
    13,073 on at

    Create another flow that starts manually.

    ------------------------------------------------------------------------------------------------------

  • CatCarrier Profile Picture
    13 on at

    That's a clever idea, I will remember that. In the meantime I just sat down last last week and manually forwarded all these emails (400+) into the mailbox. This was painful, but it got the job done.

  • j-pea Profile Picture
    3 on at

    This still works flawlessly!  Thank you.....JUNE2023

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard