Im trying to use the Delete Email (V2) to delete emails that were sent out through my flow (from the Sent Items folder in Outlook). However, I cant figure out what the email ID is.
If I use "body('Send_an_email_(V2)['Message_ID'] or "body('Send_an_email_(V2)['ID'], the flow throws an error.
Any help here?
Solved! Go to Solution.
Hey there. The eMail ID is a unique identifier of the message. If you're using the same flow that is sending the message, the only dynamic value would be the "Body" from the Send eMail step.
One approach might be to send the email, then do a "Get eMails" step from the Sent Items folder, then further filter based on the subject (maybe even the To:), and then that step should give you a message ID to use in the Delete step.
Here's a thread where someone did something similar.
Keep us posted.
-Ed-
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Hey there. The eMail ID is a unique identifier of the message. If you're using the same flow that is sending the message, the only dynamic value would be the "Body" from the Send eMail step.
One approach might be to send the email, then do a "Get eMails" step from the Sent Items folder, then further filter based on the subject (maybe even the To:), and then that step should give you a message ID to use in the Delete step.
Here's a thread where someone did something similar.
Keep us posted.
-Ed-
If you liked this reply, please give it a thumbs up! If this reply has answered your question or resolved your challenge, please consider marking it as a Solution. This helps other users find it more easily via search.
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!
User | Count |
---|---|
45 | |
42 | |
37 | |
36 | |
23 |
User | Count |
---|---|
42 | |
39 | |
30 | |
29 | |
28 |