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.


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.