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 / 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
    11,695 Super User 2025 Season 2 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
    11,695 Super User 2025 Season 2 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

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard