web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow automatically add...
Power Automate
Unanswered

Flow automatically adding extra backslash to string

(0) ShareShare
ReportReport
Posted on by 61

Trying to send an email listing enrolled students to course tutors with their learner plans, but when adding the hyperlink field from the SQL table, Power Automate is adding an extra back slash at the beginning and end of the hyperlink, breaking the HTML tag. This occurs inside a ForEach loop. I've tried using replace, but that did nothing.  I also tried using concat to no effect, expression as follows: 

concat('<a href="', item()?['hyperlink'], '">', item()?['student_forenames'], ' ', item()?['student_surname'], '</a>')

 

  Any ideas on how to get around this odd quirk?

 

JenLavery_0-1693122777356.png

JenLavery_1-1693124392777.png

 

 

Categories:
I have the same question (0)
  • OliverR-82 Profile Picture
    619 on at

    It's adding the backslash to escape the double quotes around the URL because there are already double quotes at the beginning of that string. Have you tried replacing the double quotes in your Select action with single quotes? That would give you a link like below, and that should still work.

    <a href='https://www.yourlink.com'>this link should still work</a>

     

  • JenLavery Profile Picture
    61 on at

    Thanks!  I thought that might be it.  Switching has removed the \ from the output.

    However, it still does not translate to a hyperlink on the 'Create HTML Table' function.  Looking about, this may be a problem with that specific connector.  It doesn't like HTML tags in the table fields.

    Tried putting the HTML tags directly in the connector, but that doesn't seem to be doing the trick either.  Don't suppose you've been able to get around that as well? 😅

  • JenLavery Profile Picture
    61 on at

    Found an article explaining the Create HTML issue.  When getting the output for create HTML for the email, I had to use the following expression to make the hyperlink tags work:

    replace(replace(replace(body('Create_HTML_table'),'&lt;','<'),'&gt;','>'),'&quot;','"')

     
    Helpful article for the Create HTML table link issue

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard