Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

Send an email (V2) Dynamic Content

When using Send an email (v2) and viewing in Code View, I add a Dynamic field to the content (i.e. a hyperlink a href="<dynamic field>") but when I change the view back Html View it changes the whole email body.


For example code view will turn from this:

<a href="[Dynamic Content]&code=[Dynamic Content]">click here</a>

Changed into this:

[Dynamic Content]<a href=";object custom=">&amp;code=</a>[Dynamic Content]<a href="href=";object custom=">"&gt;click here</a>

Absoultely no idea how this happens.. But if I set the code view with the Dynamic Content and Save the Flow, it will work.

However next time I open the Send an email (V2) step it displays as above...

Advocate I
Advocate I

Although Microsoft has not fixed this bug, @sudosaurus provides a work-around HERE.

i had also solved like this

This worked for me, thank you

Regular Visitor

Nice video here that shows a solution: (426) Power Automate Dynamic Content Email Links - YouTube


@jasonbic - A little bit of thread necromancy here, but I ran into this same issue today and found that if my html formatted message starts with certain html tags (e.g., <p> in my case specificially), the code gets chewed up as the editor reverts to rich text mode. If you have content at the top of the message that's not a <p> tag, it locks into html mode and retains your clean formatting.


Not sure if this is a remnant of a bug that was fixed long ago, but so far, I'm only seeing this issue with paragraphs. 

Helpful resources

Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (4,496)