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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Retrieving attachments...
Power Automate
Answered

Retrieving attachments from email in sub-folder failing to retrieve attachment

(0) ShareShare
ReportReport
Posted on by 25

I have a flow that needs to pull attachments from email that are saved to a sub-folder of a shared mailbox's Inbox.  The flow works fine when I use a non-shared email and top level Inbox. However, when I set it up to use the sub-folder in the shared email account I get an error on Get Attachments (V2) action.  

msimmonds_0-1641305437344.png

msimmonds_1-1641305480439.png

When I open the outputs for the Get Attachment (V2) action in the run log I see that the is reporting as:

:{"error":{"code":"ErrorInvalidMailboxItemId","message":"Item 'AAMkADViNjY2ZjFkLWJlYWMtNDdmZC1hN2Q1LTQ0ZjU3ZWM5ODYwNgBGAAAAAABryrxOtXSfQbeNZ-N5-AycBwDRSGB9LjSwQ6AoxDmm3XOqAACuHrJFAADRSGB9LjSwQ6AoxDmm3XOqAAF2Drz8AAABEgAQAFSD9jKO8NdMtQtXGiE9eew=' doesn't belong to the targeted mailbox

 

The only Message Id field available in the Dynamic Content is from the initial When a new email arrives in a shared mailbox (V2) action so it is not possible that I have selected the wrong one.

 

 

Categories:
I have the same question (0)
  • Ellis Karim Profile Picture
    12,081 Super User 2026 Season 1 on at

    Please check the following:

    Snag_229bc021.png

    Snag_229afb4a.png

     


    Ellis
    ____________________________________
    If I have answered your question, please mark the post as Solved.
    If you like my response, please give it a Thumbs Up.

  • msimmonds Profile Picture
    25 on at

    Confirmed that the When New Email Arrives is properly configured.

    For the Get Attachments action: Do I need to include the path to the specific folder or is just the email address sufficient?

  • Verified answer
    Ellis Karim Profile Picture
    12,081 Super User 2026 Season 1 on at

    The Get Attachments (V2) only takes one option which is the Mailbox address.

     

    What do you need from the Get Attachments (V2) action? The When a new email arrives in a shared mailbox (V2) action could provide what you need?

    Snag_22c1168a.png

    Ellis

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard