cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jasonbic
Level: Powered On

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="http://system.domain.com/index.php?id=[Dynamic Content]&code=[Dynamic Content]">click here</a>

Changed into this:

[Dynamic Content]<a href="http://system.domain.com/index.php?id=&lt;object custom=">&amp;code=</a>[Dynamic Content]<a href="href="http://system.domain.com/index.php?id=&lt;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...

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Send an email (V2) Dynamic Content

Hi @jasonbic ,

 

If you want to add a similar hyperlink tag to email body, it is recommended to use Send an email action directly and set Is html field to Yes.

 

In addition, if you are configuring a hyperlink in Send an email (V2) action, please manually configure Link Title and Link Target using the feature provided in the editing tool.

Image refernece:

4.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
Community Support Team
Community Support Team

Re: Send an email (V2) Dynamic Content

Hi @jasonbic ,

 

If you want to add a similar hyperlink tag to email body, it is recommended to use Send an email action directly and set Is html field to Yes.

 

In addition, if you are configuring a hyperlink in Send an email (V2) action, please manually configure Link Title and Link Target using the feature provided in the editing tool.

Image refernece:

4.PNG

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

jasonbic
Level: Powered On

Re: Send an email (V2) Dynamic Content

@v-bacao-msftthank you for your response.

 

Is there a reason Send an email is recommended over Send an email (V2)?

 

Additionally, you cannot add Dynamic Content when using Link Title and Link Target.

mpoppe
Level: Powered On

Re: Send an email (V2) Dynamic Content

Hi,

Recently 'send an email' has been depreciated and it is still not possible to ad dynamic content to a hyperlink in send an email V2.  Will this be added soon? We send a link to a sharepoint item in emails, and this is not useable anymore.

thanks

silkwire
Level: Powered On

Re: Send an email (V2) Dynamic Content

We have this issue as well. Can't select the old send email, and can't send any new dynamic links now. 

PhilD
Level 8

Re: Send an email (V2) Dynamic Content

This is kind of a big deal... I'm using the new V2 Send and email actions but my carefully crafted HTML email gets hosed the moment I add a simple link that contains the item's ID appended to the URL as a query string parameter.

 

Isn't this one of the simplest and most typical uses of Flow? How can this just straight up not work properly?

PhilD
Level 8

Re: Send an email (V2) Dynamic Content

This is not "Solved" by the way.

niclasdahl
Level: Powered On

Re: Send an email (V2) Dynamic Content

Still not working, this need to be be fixed.

 

Either allow dynamic content to be used in the link target or the ability to set Is html on the on the mail.

 

With the "Send an Email"-actiongone this is really frustrating when you ned to create links based on dynamic content... 

NirolfD
Level: Powered On

Re: Send an email (V2) Dynamic Content

I used an expression inside the email body using concat function:

concat('<a href="https://{url first part}',variables('myvar'),'{url last part}">Description</a>'

 

After you save, just use peek code for the Send an email (V2) and see the html body.

 

It was tested and working until they solve the email body editor.

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (5,488)