Showing results for 
Search instead for 
Did you mean: 
Advocate I
Advocate I

Item Id doesn't belong to the current mailbox

Hopefully my final edit... @PeteFromDenver alerted us that Microsoft has added a "Mailbox Address" field to Outlook actions. You can enter the address of the shared mailbox in this field to get back to original functionality. I'm keeping all previous solution details below just in case.


I've accepted the solution provided by @Anonymous on page 3. As a note for future users running into this issue, this solution requires a premium account. This will not be the best solution for a number of users (myself included), but it's the Microsoft-supported fix and (hopefully) the least likely to fail in the future. 


For more information on the Graph API solution, check the posts by @jonathanford on pages 5 and 6. 


If you do not have a premium account, the solution on page 3 offered by @Mindaugas is your best bet. You will need to add a new connection to Flow for the shared mailbox and then select that account as the connection for your Flow step. @RHCC gives more details on page 4 - you will also most likely need to add a password to the shared mailbox which is not intuitive. 


This is by far the easiest solution, but I'm concerned how long it will work before Microsoft breaks functionality in an update. They do not support shared mailbox connections in Flows that don't specifically use that language, which is a frustrating response given how many users were relying on these Flows for their daily business. 


Original post below:


Hi all - I'm having an issue with a couple Flows that were previously working without error.


When a new email arrives in a shared mailbox runs in a separate Flow and creates a SharePoint list item. One of the attributes added is the id of the trigger email (MessageId from the triggerBody). 


I have two other Flows that will reply to this initial email using Reply to email. The stored MessageId is used to reply to the correct email. This has been working for 4+ months without error, but started failing today with the error shown in the Subject (Item Id doesn't belong to the current mailbox). 


Myself and one other user are not having this failure. I had a user who was experiencing the failure check their connections in Flow and all apps were still connected. I also had them check their access to the shared inbox in Outlook and they still had full access.  


Has anyone run into something similar or have any suggestions? It seems like it must be a user connection to the shared inbox but I'm not sure what else to look into. Thanks!


**Editing to note that the Get email step is also failing when referencing the ID of an email in a shared mailbox.

145 REPLIES 145
Not applicable

@timothydickson this solution worked for me! Thank you so much.

Advocate I
Advocate I

It looks like Microsoft has updated the error for this issue in Flow. The new error is "This action does not support shared mailboxes" and they include a link to the documentation that recommends the Graph solution.


So no new information really for those of us who have been working through this issue, but I wanted to include that error text so a search could at least retrieve this thread.

Not applicable

the solution from @timothydickson  worked for me. remove the "get attachments" action and create the file just using the "when item arrives in shared mailbox" trigger

Not applicable

@timothydickson !!! Thank you very much for posting the detailed description of your fix.   This was what I needed to get my Flow running again, as well.  I really appreciate you taking the time to share the information.   



@MindaugasMy admin says that my sharebox doesn't have password. Can I use your solution without password? When I try to enter my sharebox in the connections, I got error message that the Email address is wrong. Any advice?



Your admin is lazy admin. You can change any password of mailbox. He has to find it with all rest of active users in admin center

My admin is also mentioned that there is no password to this shared mailbox. I'm not completely clear, but he said this account is provided same E3 license or something of that sort, so these are not the same as other accounts.

My admin create a account for this shared mailbox

Kudo Commander
Kudo Commander

Just do not forget that you can also ask MS per support ticket for help. It's also a good idea to show them the amount of problems they produce with changes like this.


And I am wondering why I still find official MS flow templates, which use "mark as read" on "shared mail box" items. Which in my opinion can't work after the last changes:

"Save attachments to OneDrive (Business) on new email in shared mailbox"


Perhaps someone can correct me, that this template should still work as it is?

Responsive Resident
Responsive Resident

I'm having a similar issue, when ever i try to run a flow that starts with the trigger 'when a new email arrives in a shared mailbox (V2)' it fails like this:errortje13.PNG


Odd thing is that if I try to use it on my test tenant it works perfectly fine. (how typical; works where it doesn't matter - doesn't work where it matters).


run on unimportant, pointless tenant:



the only actual difference are the language settings between tenants.

Not applicable

@timothydickson , What is simple solution. This works perfectly for me thank you. I was  using the trigger to save attachments in the shares email to a OneDrive folder. So a little bit different than the original issue reported but one that was discussed with in the thread. The files were retrieved but corrupted.

Regular Visitor


We had same issue with the Shared Mailbox , where we marked the mail as read, flagged it Complete and moved it into another folder in the Shared Mailbox.

Now we have changed to a Service User account's mailbox , and proceding the same process , but since we can login as Service user account and with password , our connections are now using the Service User connection and everything works just as it did with the Shared Mailbox before.

Hello, my problem was with getting attachements from shared mailbox in Logic App.


I have opened ticket to MS , after few calls solved it by these steps :

- Invoke HTTP witn Azure AD - Invoke an HTTP request (need connect to  in both parameters), URL parameter:"Your shared mailbox adress"/messages/MessageId/attachments

- Parse JSON - Contet: Body from HTTP call

- For Each JSON.Vakue set variable XY to base64ToBinary(ContentBytes)


"properties": {
"@@odata.context": {
"type": "string"
"value": {
"items": {
"properties": {
"@@odata.mediaContentType": {
"type": "string"
"@@odata.type": {
"type": "string"
"contentBytes": {
"type": "string"
"contentId": {},
"contentLocation": {},
"contentType": {
"type": "string"
"id": {
"type": "string"
"isInline": {
"type": "boolean"
"lastModifiedDateTime": {
"type": "string"
"name": {
"type": "string"
"size": {
"type": "integer"
"required": [
"type": "object"
"type": "array"
"type": "object"

- write attachemnt/file to Sharepoint Libary: name from JSON, content from  variable XY

Advocate I
Advocate I

My premier support tech just sent me the following message


I just wanted to provide you an update that after passing the feedback to the Product team that multiple users complained about existing functionality breaking,

The Product team has deployed a fix for this where an optional parameter is added to the outlook actions to specify the shared mailbox address.

This should provide the support and users should not see the error that they were seeing earlier.


@PeteFromDenver Wow, great update. I just added in the shared mailbox to my existing Flows and they're all working again.

The world thanks you @PeteFromDenver

Hello @PeteFromDenver ,


nice to see the change. I see this new "mailbox" field on connectors like "get attachments" and "get mail" but not on actions like "Mark as read". So, I guess, your solution is not able to "Mark as read" for a email in a shared folder?

Or do it solve this also and I miss something?


thanks and best regards

I'm not sure how many actions they are adding it to.  They just said "updating the Email actions".  Maybe it will get an update today also.  If not, I can pass the info on but may also need another support ticket or uservoice submission.

@teqs I can see the Mailbox Address field on the Mark as read or unread (V2) step.

@PeteFromDenver wrote:


The Product team has deployed a fix for this where an optional parameter is added to the outlook actions to specify the shared mailbox address.


what is the mailbox adres?  or ? (im very noob, legit question)

Helpful resources


Power Platform Connections - Episode 7 | March 30, 2023

Episode Seven of Power Platform Connections sees David Warner and Hugo Bernier talk to Dian Taylor, alongside the latest news, product reviews, and community blogs.     Use the hashtag #PowerPlatformConnects on social media for a chance to have your work featured on the show.  

Announcing | Super Users - 2023 Season 1

Super Users – 2023 Season 1    We are excited to kick off the Power Users Super User Program for 2023 - Season 1.  The Power Platform Super Users have done an amazing job in keeping the Power Platform communities helpful, accurate and responsive. We would like to send these amazing folks a big THANK YOU for their efforts.      Super User Season 1 | Contributions July 1, 2022 – December 31, 2022  Super User Season 2 | Contributions January 1, 2023 – June 30, 2023    Curious what a Super User is? Super Users are especially active community members who are eager to help others with their community questions. There are 2 Super User seasons in a year, and we monitor the community for new potential Super Users at the end of each season. Super Users are recognized in the community with both a rank name and icon next to their username, and a seasonal badge on their profile.  Power Apps  Power Automate  Power Virtual Agents  Power Pages  Pstork1*  Pstork1*  Pstork1*  OliverRodrigues  BCBuizer  Expiscornovus*  Expiscornovus*  ragavanrajan  AhmedSalih  grantjenkins  renatoromao    Mira_Ghaly*  Mira_Ghaly*      Sundeep_Malik*  Sundeep_Malik*      SudeepGhatakNZ*  SudeepGhatakNZ*      StretchFredrik*  StretchFredrik*      365-Assist*  365-Assist*      cha_cha  ekarim2020      timl  Hardesh15      iAm_ManCat  annajhaveri      SebS  Rhiassuring      LaurensM  abm      TheRobRush  Ankesh_49      WiZey  lbendlin      Nogueira1306  Kaif_Siddique      victorcp  RobElliott      dpoggemann  srduval      SBax  CFernandes      Roverandom  schwibach      Akser  CraigStewart      PowerRanger  MichaelAnnis      subsguts  David_MA      EricRegnier  edgonzales      zmansuri  GeorgiosG      ChrisPiasecki  ryule      AmDev  fchopo      phipps0218  tom_riha      theapurva  takolota     Akash17  momlo     BCLS776  Shuvam-rpa     rampprakash  ScottShearer     Rusk  ChristianAbata     cchannon  Koen5     a33ik  Heartholme     AaronKnox  okeks      Matren   David_MA     Alex_10        Jeff_Thorpe        poweractivate        Ramole        DianaBirkelbach        DavidZoon        AJ_Z        PriyankaGeethik        BrianS        StalinPonnusamy        HamidBee        CNT        Anonymous_Hippo        Anchov        KeithAtherton        alaabitar        Tolu_Victor        KRider        sperry1625        IPC_ahaas      zuurg    rubin_boer   cwebb365   Dorrinda   G1124   Gabibalaban   Manan-Malhotra   jcfDaniel   WarrenBelz   Waegemma   drrickryp   GuidoPreite    If an * is at the end of a user's name this means they are a Multi Super User, in more than one community. Please note this is not the final list, as we are pending a few acceptances.  Once they are received the list will be updated. 

Register now for the Business Applications Launch Event | Tuesday, April 4, 2023

Join us for an in-depth look into the latest updates across Microsoft Dynamics 365 and Microsoft Power Platform that are helping businesses overcome their biggest challenges today.   Find out about new features, capabilities, and best practices for connecting data to deliver exceptional customer experiences, collaborating, and creating using AI-powered capabilities, driving productivity with automation—and building towards future growth with today’s leading technology.   Microsoft leaders and experts will guide you through the full 2023 release wave 1 and how these advancements will help you: Expand visibility, reduce time, and enhance creativity in your departments and teams with unified, AI-powered capabilities.Empower your employees to focus on revenue-generating tasks while automating repetitive tasks.Connect people, data, and processes across your organization with modern collaboration tools.Innovate without limits using the latest in low-code development, including new GPT-powered capabilities.    Click Here to Register Today!    

Check out the new Power Platform Communities Front Door Experience!

We are excited to share the ‘Power Platform Communities Front Door’ experience with you!   Front Door brings together content from all the Power Platform communities into a single place for our community members, customers and low-code, no-code enthusiasts to learn, share and engage with peers, advocates, community program managers and our product team members. There are a host of features and new capabilities now available on Power Platform Communities Front Door to make content more discoverable for all power product community users which includes ForumsUser GroupsEventsCommunity highlightsCommunity by numbersLinks to all communities Users can see top discussions from across all the Power Platform communities and easily navigate to the latest or trending posts for further interaction. Additionally, they can filter to individual products as well.   Users can filter and browse the user group events from all power platform products with feature parity to existing community user group experience and added filtering capabilities.     Users can now explore user groups on the Power Platform Front Door landing page with capability to view all products in Power Platform.      Explore Power Platform Communities Front Door today. Visit Power Platform Community Front door to easily navigate to the different product communities, view a roll up of user groups, events and forums.

Microsoft Power Platform Conference | Registration Open | Oct. 3-5 2023

We are so excited to see you for the Microsoft Power Platform Conference in Las Vegas October 3-5 2023! But first, let's take a look back at some fun moments and the best community in tech from MPPC 2022 in Orlando, Florida.   Featuring guest speakers such as Charles Lamanna, Heather Cook, Julie Strauss, Nirav Shah, Ryan Cunningham, Sangya Singh, Stephen Siciliano, Hugo Bernier and many more.   Register today:   

Top Solution Authors
Users online (5,191)