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 / Get Emails (V3) failin...
Power Automate
Answered

Get Emails (V3) failing when another uses it with error about shared mailboxes

(0) ShareShare
ReportReport
Posted on by 37
My flow is called from Power Apps.  The user is setup as a run-only user.  The connection for the current user reflects his mailbox address.  The same flow has SharePoint and Teams connections that work fine for the user.  But Get Emails (V3) fails with the following message:  "Your flow is failing.: As of May 6, 2020, shared mailbox support was added for certain operations with an optional 'Mailbox address' parameter, allowing you to specify a shared mailbox address for your operation to access. If you were using this operation prior to May 6, 2020, you will need to explicitly update your operations to specify the shared mailbox address. Please follow the Office 365 documentation for more information: https://docs.microsoft.com/en-us/connectors/office365/#shared-mailbox-support".  
 
Is this a bug or is there something I'm missing?
Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Moderator on at
     
    You will need to check the Get Emails (V3) action to find the issue.
     
    Check if the parameters you have specified are correct and if those parameters match the user's mailbox (the one thats running the flow).
     
    If possible paste a screenshot (with sensitive information sanitised) in the thread so that we can troubleshoot more.
     
    Cheers!
  • DeanRoberts Profile Picture
    37 on at
    See the attached images.  I'm not passing any parameters except the search query which is filtering based on from and to addresses.  I confirmed via a screen share that the user's Outlook connection was using his account instead of mine.
     
    Looking at the output of the action, I see a status code of 404 and an error\code of ErrorInvalidMailboxItemId.
     
    Here are the input parameters:
     

    {"importance":"Any","fetchOnlyWithAttachment":false,"folderPath":"Id::****************************************","fetchOnlyUnread":false,"includeAttachments":false,"searchQuery":"(from:aaaaaaaaaaaaaaaaaaa OR from:bbbbbbbbbbbbbbbbbbbbbbb) AND (to:ccccccccccccccccccccccccc OR to:dddddddddddddddddddddddddd)","top":100}
     
    and the resulting output
     
    {"status":404,"message":"Item ***********************************' doesn't belong to the targeted mailbox **********************************.\r\nclientRequestId: **************************************\nserviceRequestId: *********************************,"error":{"message":"Item ********************************************************************** doesn't belong to the targeted mailbox *******************************************","code":"ErrorInvalidMailboxItemId","originalMessage":"Item *********************************************************** doesn't belong to the targeted mailbox ***********************************"},"source":"office365-wus.azconn-wus-001.p.azurewebsites.net"}
     
    Picture1.png
    Picture2.png
    Screenshot 2025-12-01 082022.jpg
  • Verified answer
    DeanRoberts Profile Picture
    37 on at
    This problem has been resolved.  The Folder parameter for Get emails (V3) defaulted to Inbox.  For some reason, it seems to have captured a cryptic id that pointed to the Inbox in my mailbox.  I cleared out the Folder parameter and then removed it from the visible parameters.  I confirmed in the code view that the folder was no longer present.  Now it works.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 604

#2
Valantis Profile Picture

Valantis 502

#3
Vish WR Profile Picture

Vish WR 417

Last 30 days Overall leaderboard