Hello,
I have some automations that monitor received messages of an shared mailbox and depending on some conditions will forward a message to the same mailbox just to include more details of that message.
One final process step is to "Flag" the received messages as "completed" (including the ones that are forwarded to "self"), but instead of flagging the message in the Inbox folder, will flag the message in the "Sent Items" folder.
To be more clear, let's assume there are two messages received in Inbox: Message1 and Message2.
Now let's say that Message 2 hit the conditions and the original message is moved into another folder, then is redirected from shared mailbox to the same shared mailbox just to include some more information besides the original message and its attachments. And let's call this "self forwarded message" Message2-2.
This new Message2-2 will trigger the flow but this time that special condition will no longer be met and the message will remain in Inbox as the Message1.
Now, for these two messages Message1 and Message2-2 at the end of the flow there is an action for "Flag email (V2)" with completed status based on the MessageID of the Inbox message.
But for the Message2-2 instead of flagging the Inbox message, will flag the "Sent items" message. And this is strange as the message from a different folder would have an different MessageID.
Is there a way to have flagged the Inbox message? Or what am I missing?
Kind Regards,
Lucian