Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Ug5ZUGVfrxhv/S2EyemSMF
Power Automate - Building Flows
Suggested answer

Outlook delete notification message

Like (2) ShareShare
ReportReport
Posted on 1 Aug 2024 14:09:57 by 16
Hello all,
 
I tried to build a simple flow that sends a notification to my email acount A when in my email account B an email arrives in the inbox. The flow has the following steps:
 
Step 1. triggers this flow when an email arrives in the inbox of my account B. 
 
Step 2. sends an email/notification to the inbox of my account A to notify me that in account B an email arrived. This email/notification holds the body of the original email that triggered the flow.
 
Step 3. should delete the sent email/notification from the sent items folder from my account B
 
 
The steps 1 and 2 function as they should, but in step 3 the original email that arrived in the inbox of account B is deleted instead of the notification that is sent from account B to account A and that remains in the sent items folder. It looks like in step 3 Power Automate grabs the wrong Message ID to delete, but i cannot find any options to make step 3 use the right Message ID.
 
If any more info is needed let me know.
 
Thanks for help.
  • Job1955 Profile Picture
    16 on 04 Aug 2024 at 15:56:14
    Outlook delete notification message
    Thanks for the replies. As a unexperienced Power Automate user the option with 2 separate flows seems to be the easyest  way to get things working.
  • Suggested answer
    WillPage Profile Picture
    1,907 on 02 Aug 2024 at 04:24:31
    Outlook delete notification message
    Instead of using the in-built Send an email action, you can use the "Send an HTTP request" action to create a draft then send it in a two-step process. The action of creating the draft gives you the message ID which you can then use twice, once to send the draft and once to delete the sent item:

    Create Draft:
     
    Send draft


    Delete sent item
     
    It works:
  • Suggested answer
    AnthonyAmador Profile Picture
    2,544 Super User 2025 Season 1 on 01 Aug 2024 at 20:14:29
    Outlook delete notification message
    Hi, 
     
    The problem is that ‘Send an email V2’ doesn’t generate any message ID. What you can do is create another flow, use the same trigger for when a new email arrives, and select the ‘Sent items’ folder to delete it from there. You have to filter it, otherwise, it will delete all new sent emails.

    Hope this helps. 
    Anthony 

    If my reply answers your question, please like and mark it as verified. This helps me stay motivated to assist others and makes it easier for users with similar questions to find the answer. Thanks!
    Feel free to connect with me on LinkedIn!
     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,776 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,093 Most Valuable Professional

Leaderboard
Loading started