Hi All
Please can you tell me where I'm going wrong here?
{
"status": 404,
"message": "Item 'AAMkAGJhZmY5YWUxLTQ3NjAtNGNlOS05MWM1LTYxYmEwMjY1MDI0MwBGAAAAAADnHzrk_C1KSb1bU_TLKJPHBwBNMRy1ugqzRIKSj3ZmV7kFAAAAAAEMAABNMRy1ugqzRIKSj3ZmV7kFAAFoLOiAAAABEgAQAM77BXf5td5HjCeTmTatYcE=' doesn't belong to the targeted mailbox 'fe6f7354-9e41-4600-a563-ee1819fc9649'.\r\nclientRequestId: 167bc21c-70c9-40b2-983d-8a1bc6cbb84a\r\nserviceRequestId: 21071272-1eed-2ce9-4389-83d4c49949cd",
"error": {
"message": "Item 'AAMkAGJhZmY5YWUxLTQ3NjAtNGNlOS05MWM1LTYxYmEwMjY1MDI0MwBGAAAAAADnHzrk_C1KSb1bU_TLKJPHBwBNMRy1ugqzRIKSj3ZmV7kFAAAAAAEMAABNMRy1ugqzRIKSj3ZmV7kFAAFoLOiAAAABEgAQAM77BXf5td5HjCeTmTatYcE=' doesn't belong to the targeted mailbox 'fe6f7354-9e41-4600-a563-ee1819fc9649'.",
"code": "ErrorInvalidMailboxItemId",
"originalMessage": "Item 'AAMkAGJhZmY5YWUxLTQ3NjAtNGNlOS05MWM1LTYxYmEwMjY1MDI0MwBGAAAAAADnHzrk_C1KSb1bU_TLKJPHBwBNMRy1ugqzRIKSj3ZmV7kFAAAAAAEMAABNMRy1ugqzRIKSj3ZmV7kFAAFoLOiAAAABEgAQAM77BXf5td5HjCeTmTatYcE=' doesn't belong to the targeted mailbox 'fe6f7354-9e41-4600-a563-ee1819fc9649'."
},
"source": "office365-we.azconn-we-002.p.azurewebsites.net"
}
The answer seems obvious - attachment not found, but why? 😞
Hi
A less complicated workaround - i set up a rule on the shared inbox to forward new emails to my own inbox, then another rule to filter it out to a sub folder, then trigger the flow!
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 I have helped give me a thumbs up! 👍
If I have answered your question, please mark it as solved ✅
Get attachment action doesn't support shared mailboxes. You will have to use a workaround: Office 365 Outlook - Connectors | Microsoft Learn
--------------------------------------------------------------------
🌟 If I have helped give me a thumbs up! 👍
If I have answered your question, please mark it as solved ✅
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2