web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create Email Message u...
Power Automate
Unanswered

Create Email Message using Template in Draft State

(0) ShareShare
ReportReport
Posted on by 2

I wanted to create email message in draft state including email template.

I am embedding template id by using templates(guid) in Add new row but email get generated without template.

 

AnnyJone_0-1622889697167.png

Any help would be appreciated.

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,472 Most Valuable Professional on at

    Hi @AnnyJone,

     

    As far as I am aware the insert template is unbound type of action. 

     

    Maybe you could try and use the Perform an unbound action together with the InstantiateTemplate or SendEmailFromTemplate actions?

     

    Roohi Shaikh has written a nice blog about this approach:

    https://www.inogic.com/blog/2020/09/power-automate-send-an-email-using-the-email-template-part-1/

     

    Hope this helps a bit?

  • AnnyJone Profile Picture
    2 on at

    Hi @Expiscornovus ,

     

    Your solution is pretty good and provided link is very useful but I don't want to send an email I just want to create email in draft state along with a template in it.

  • Expiscornovus Profile Picture
    33,472 Most Valuable Professional on at

    Hi @AnnyJone,

     

    As far as I understood the InstantiateTemplate method creates an email message from a template but doesn't send it yet.

     

    Apologies, I wasn't clear in my previous reply. My suggestion was to try and use the approach used in the blog but use the InstantiateTemplate (creates email) instead of the SendEmailFromTemplate (sends email) action.

  • Sinisa Kezic Profile Picture
    4 on at

    I have done this with separate steps within power automate flow.

     

    First you need to call instantiatetemplate:

     

    Sinisak_0-1667398117880.png

     

    After that compose an object from the body of the unbounded action and parse it to retrieve subject and description values from that object:

    Sinisak_0-1667402853882.png

     

    Then you need to create a new row of the Email Messages entity with the attribute description set to point to the extracted description:

    Sinisak_1-1667403216920.png

     

    Subject field can be set on the same record/step:

     

    Sinisak_2-1667403359007.png

     

    with this approach you can easily create an e-mail message using template in draft state.

  • VIDIT Profile Picture
    666 on at

    Thank you @Expiscornovus @Sinisak , I this helped me resolve my issue.

  • Symnoian Profile Picture
    10 on at

    I've been trying to get this to work and can't. I also want to create an email activity from a template but not send it. What are the other field in the instanciateTemplate unbounded action supposed to be? Your image is redacted and the documentation doesn't explain what they are.

  • VIDIT Profile Picture
    666 on at

    Hi @Symnoian, I had a similar requirement. and it is fairly simple to implement.

    Step 1: I performed a Get Row by ID action on the email templates entity. and I used it in the Instantiate Template Action. I am also passing the Entity (Case) for which I am running the email template. I have also defined an Object type of variable to hold the body of the unbound action.
    ViditGholam_1-1710133261187.png

    Step 2: now I got the object shown in the below image as the output from the unbound action, I used this object to create a Schema in the parse Json action.

    ViditGholam_3-1710133825196.png

    I parsed the object from the unbound action with the provided Schema. and I get the Subject and Description that has been create by the email template.

    ViditGholam_4-1710133836867.png

    then I am just creating an email message using and using the add a row action and adding the Subject and Description in that email message. this will just create an email message if you want to send that email there is another bound action to do that.

    ViditGholam_5-1710134040055.png

    Hope this solves your issue




     

     


      

  • stewbo Profile Picture
    2 on at

    Thank you for the above article @ViditGholam . I have managed to successfully create the mail based on a template and I have also managed to add an attachment. My customer wishes to have control over the sending of the mail and wishes for it to be sent from a shared mailbox. I have set the shared mailbox up for users to send on behalf of them and approved and tested the account but when I click the send button I get an Invalid Argument message. I have also manually sent emails using the accounts I'm testing with and these work fine so I was wondering if you or anyone else on here have encountered the same issue? 

    stewbo_0-1716507519199.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 331 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 203 Most Valuable Professional

Last 30 days Overall leaderboard