Hello,
I have created a cloud flow that is triggered by a modification of a specific field of a dataverse record.
The flow creates a draft mail, containing details of the dataverse record that has been modified.
When I send the POST request with URI https://graph.microsoft.com/v1.0/me/messages,
the draft is created in my mailbox, even if the flow is triggered by another user.
The draft should be created in the mailbox of the user that triggers the flow.
However, when I send the request with URI https://graph.microsoft.com/v1.0/users/aaaaa-651186-uydyugdg/messages,
I get an error saying that aaaaa-651186-uydyugdg is not a valid user.
I obtain the hash from the trigger body.
This happens even if the user-code (or hash) is me.