Hi,
I have a Flow where I send out a courtesy message every time an incoming mail arrives. I would like NOT to save this messages in the Shared Mailbox Sent Items folder, or I'd like to delete it after sending.
As the message ID is not a field available after sending the message from the Shared Mailbox, is there any other way this could be possible?
thank you
Marco
Hi @Marco_1974
So to delete an email you would need the message ID (as you have mentioned) but the action send an email will be sending the email and an email id is generated only after the email is sent (basically send an email is an action that will be excuted but has not been executed yet and thus the issue with getting the email ID). But there should be a feature where the send an email action is executed and after a small delay the ID could be retrieved.
Currently this is not supported in flow and it might be included in later releases. Here is an idea that was created to include more information on the send an email action: https://powerusers.microsoft.com/t5/Flow-Ideas/Return-value-of-quot-Send-E-Mail-quot-action-to-include-the-e/idi-p/143027
You can add some comments there and upvote the idea (or a create a new one if you have ant specifics or probably upvote similar ones on the ideas forum here: https://powerusers.microsoft.com/t5/Flow-Ideas )
Hope this Helps!
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
Hi @Marco_1974 ,
Yes, as you said, the message ID is not a field available after sending the message, I have made a test on my side, and I'm afraid that ther is no any way to delete the email after sending in Shared Mailbox.
Best regards,
Alice
Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
WarrenBelz
146,587
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional