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

Trying to show text to a URL link in an email

I have a Sharepoint List that is populated from a MS FORM using Flow. There is a column that has a URL. I have my FLOW grabbing the items from the list and ading it to a table in an email. I have the email set to use HTML. When I create the table the URL is copied in fine and when the email is sent the link works. What I want to do is have text linked to the URL. For example; I want http://www.website.com/index/intro.html to look like this "Click Here". I added to the Sharepoint list <a href="http://www.website.com/index/intro.html>Click Here</a> and what get put into the table fo the email is "<a href="http://www.website.com/index/intro.html>Click Here</a>" code and all. The odd thing is that I can add the code outside of the table ane the it works. (pictures use a different url than my example)2019-08-06_16-14-21.jpg

Here is the flow part :

2019-08-06_16-18-09.jpg2019-08-06_16-18-43.jpg

2019-08-06_16-19-12.jpg

2019-08-06_16-19-41.jpg

Seems the HTML will not work in the table. even though the link will work. very odd. 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Trying to show text to a URL link in an email

 

Hi @Galvipa ,

 

Please try to insert a hyperlink in the HTML table by referring to the method mentioned in this blog.

https://alextofan.com/2019/02/14/flow-how-to-change-the-style-of-your-html-table-in-flow/

 

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
Super User
Super User

Re: Trying to show text to a URL link in an email

Hi @Galvipa 

 

Use a compose statement to update the html table

replace(replace(replace(body('Create_HTML_table'), '&lt;', '<'), '&gt;', '>'),'&quot;','"')
 and then use it in email
 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Galvipa
Level: Powered On

Re: Trying to show text to a URL link in an email

@RezaDorrani Thank you for the response... You mean this?

2019-08-07_12-29-44.jpg

Super User
Super User

Re: Trying to show text to a URL link in an email

Hi @Galvipa 

 

You have to add the text in Compose as an expression

 

 

Capture.PNG

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Highlighted
Super User
Super User

Re: Trying to show text to a URL link in an email

In your example text you don’t have double quotes at the end of the href attribute of the anchor tag.

Could it be as simple as that?

- Mark
Galvipa
Level: Powered On

Re: Trying to show text to a URL link in an email

Yes, I did catch that after I posted this. Thank you for the help though.

Galvipa
Level: Powered On

Re: Trying to show text to a URL link in an email

Update: I added the compose Expression. I tried using it after the HTML table was created and also after the Customize HTML Table command. I made the column in the SP list to use enhanced rich text to see if that would help. This is what shows in the report in the table of the email. The compose command doesn't seem to change anything as you can see here: 

<div>&lt;a href=&quot;https://company.sharepoint.com/teams/group/Shared%20Documents/docs/ADFS_References.docx?d=w397d8rv0fc7a3cc6874fa9ce1437f5c9&quot;&gt;Wiki Link&lt;/a&gt;</div>

Here is the compose expression: 

replace(replace(replace(body('Create_Issue_HTML_table'), '&lt;', '<'), '&gt;', '>'),'&quot;','"')
Here is the current location of the compose command:
2019-08-08_10-09-42.jpg
Here is the value in Sharepoint looks like
<a href="https://company.sharepoint.com/teams/group/Shared%20Documents/docs/ADFS_References.docx?d=w397d8rv0fc7a3cc6874fa9ce1437f5ce">Wiki Link</a>
Community Support Team
Community Support Team

Re: Trying to show text to a URL link in an email

 

Hi @Galvipa ,

 

Please try to insert a hyperlink in the HTML table by referring to the method mentioned in this blog.

https://alextofan.com/2019/02/14/flow-how-to-change-the-style-of-your-html-table-in-flow/

 

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

Galvipa
Level: Powered On

Re: Trying to show text to a URL link in an email

@v-bacao-msft That was it. Basically had to build the table from scratch. Create the STYLE object and call the values in a string variable.

2019-08-14_12-26-32.jpg

 

When adding the link just add the href to the line in the table string:
2019-08-14_12-28-20.jpg

The rest is explained in the link. Thank you very much for your help and everyone's input. 

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

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

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 Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 51 members 3,461 guests
Please welcome our newest community members: