Skip to main content

Notifications

Community site session details

Community site session details

Session Id : gxdpDn8qfsDCUzbZvKnMY9
Power Automate - Power Automate Desktop
Answered

How to draft outlook email and save (.msg) in power automate desktop?

Like (1) ShareShare
ReportReport
Posted on 9 Dec 2022 09:11:38 by 28

There is no such draft outlook email action in desktop flow.

My current solution is send out email once (To my email address) -> Retrieve email in 'Sent Items' -> Save outlook email messages (.msg)

 

However, it still need manual steps to update recipients (update to correct/real recipients).

Is there any solution that do not sent out email instead of keep it in 'Drafts'.

Like:

Draft email -> Retrieve email in 'Drafts' -> Save outlook email messages (.msg)

 

 

 

  • MohammadHazem Profile Picture
    3 on 15 Feb 2023 at 08:13:39
    Re: How to draft outlook email and save (.msg) in power automate desktop?

    was this issue solved? or got an easier solution for us non programers?

     

  • Verified answer
    VJR Profile Picture
    7,635 on 09 Dec 2022 at 09:55:16
    Re: How to draft outlook email and save (.msg) in power automate desktop?

    There are two things in your post - save email into Drafts and as a msg file.

    This is very much possible with a combination of Vbscript and PAD actions.

     

    Below is the sequence of actions you need to add-

     

    1. Run Vbscript (to save the emails into Drafts folder)

    You can also pass PAD variables for the To, Cc, Subject, Body, etc

    Dim olApp
    Dim objMailItem
    
    Set olApp = CreateObject("Outlook.Application")
    Set objMailItem = olApp.CreateItem(0)
    objMailItem.Subject = "Test"
    objMailItem.To = "abcd@email.com"
    objMailItem.Body = "Test"
    objMailItem.Save
    
    Set olApp = Nothing
    Set objMailItem = Nothing

     

    2. Launch Outlook

    3. Retrieve Emails (Specify folder as Drafts)

    4. For Each loop

    Save Outlook Emails (specify format as .msg and specify folder location)

    End of For

     

    After running the process, emails will be saved as .msg files in the specified location.

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,763 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started
Loading complete