thedeepponkiya
thedeepponkiya

Reputation: 112

Unable to add fixed / static email address while send an email using Email Template using Power Automate

I created a workflow in Power Automate to send an email based on the Dynamics 365 email template. The email functionality worked fine until I added a fixed email address under Perform an unbound action step (shown in the red border under the screenshot).

I have taken a reference from the below link Power Automate: Send an email using the Email Template

Below is the code snippet which I have added for a fixed email address,

{
“addressused”: “[email protected]”,
“participationtypemask”: 3
}

Below is the screenshot of error in my power-automate / flow enter image description here

Can anyone help me with the same?

Upvotes: 0

Views: 575

Answers (2)

Sam Nseir
Sam Nseir

Reputation: 12111

Adding on to @Skin's answer - the double-quotes in the red box don't look like standard plain double-quotes, they look like open and close quotes. Check that they are "..." and not “...”. Watch out for this when copying from blogs/sites.

Upvotes: 1

Skin
Skin

Reputation: 11262

Hard to tell if there are more than the issue I have identified because you haven’t given us the JSON as text.

However, you have two comma’s as shown, fix that and try again.

enter image description here

Further to the above, I suspect you'll have issues with the last property there ... @odata.type ... it won't like that.

You'll need to remediate that as well by working around the issue, this is a potential approach ...

"@{string('@')}odata.type": "Microsoft.Dynamics.CRM.email"

@ signs are reserved characters in PowerAutomate expressions.

Upvotes: 2

Related Questions