Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

How to create flow using email template

(0) ShareShare
ReportReport
Posted on by 45

Hello,

I am trying to create a flow that sends an email from email templates when a new contact is created.  I found a year old article addressing this and tried to adjust to current formatting but I'm running into issues. Is there a better, newer way of doing this? I've listed the referenced article below so you can see where I got my path from.

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

Below is what I have based on that article but again, I could be completely off.  I was just trying what I could.  Any help or insight is greatly appreciated.  Thanks!

Screenshot-_2800_4_2900_.png

Screenshot-_2800_6_2900_.png

  • Verified answer
    Wahaj Rashid Profile Picture
    Wahaj Rashid 11,321 on at
    RE: How to create flow using email template

    Hi,

    It seems like when you copied the JSON from the blog post, it was the wrong quotes.

    Replace and with " (normal quotes).

    Try with following JSON:

    {
        "email_activity_parties": [
          {
            "partyid_systemuser@odata.bind""/systemusers(@{
              triggerOutputs()?[
                'body/_ownerid_value'
              ]
            })",
            "participationtypemask"1
          },
          {
            "partyid_contact@odata.bind""/contacts(@{
              triggerOutputs()?[
                'body/contactid'
              ]
            })",
            "participationtypemask"2
          }
        ],
        "@@odata.type""Microsoft.Dynamics.CRM.email"
      }
  • lawilliams713 Profile Picture
    lawilliams713 45 on at
    RE: How to create flow using email template

    {

    “email_activity_parties”: [

    {

    “partyid_systemuser@odata.bind”: “/systemusers(@{triggerOutputs()?['body/_ownerid_value']})”,

    “participationtypemask”: 1

    },

    {

    “partyid_contact@odata.bind”: “/contacts(@{triggerOutputs()?['body/contactid']})”,

    “participationtypemask”: 2

    }

    ],

    “@@odata.type”: “Microsoft.Dynamics.CRM.email”

    }

  • Wahaj Rashid Profile Picture
    Wahaj Rashid 11,321 on at
    RE: How to create flow using email template

    Hi,

    Thank you for your query.

    Can you please paste the JSON (as clear text) here so we can verify if it is in the right format?

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,820 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,514 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans