MS Flow - Email Template HTML breaking after adding ItemUrl in href

%3CLINGO-SUB%20id%3D%22lingo-sub-1608960%22%20slang%3D%22en-US%22%3EMS%20Flow%20-%20Email%20Template%20HTML%20breaking%20after%20adding%20ItemUrl%20in%20href%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1608960%22%20slang%3D%22en-US%22%3E%3CDIV%20class%3D%22votecell%20post-layout--left%22%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CBR%20%2F%3E%3CSPAN%3EI%20have%20a%20simple%20requirement%20of%20sending%20an%20email%20with%20custom%20ItemUrl%20and%20ID%20in%20the%20email%20body.%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CSPAN%3E%3CSTRONG%3ECurrent%20Scenario%3C%2FSTRONG%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%221.png%22%20style%3D%22width%3A%20613px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214508i23CC324F3F305934%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%221.png%22%20alt%3D%221.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FDIV%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CDIV%20class%3D%22mceNonEditable%20lia-copypaste-placeholder%22%3E%26nbsp%3B%3C%2FDIV%3E%3CSTRONG%3EItemUrl%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3Bvariable%20contains%20-%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fwww.google.com%2F%3Fid%3D%40%257BtriggerBody()%3F%255B%2527ID%2527%255D%257D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.google.com%3Fid%3D%40%7BtriggerBody()%3F%5B'ID'%5D%7D%3C%2FA%3E%3CSPAN%3E.%20Here%20Id%20is%20incrementing.%3C%2FSPAN%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%222.png%22%20style%3D%22width%3A%20623px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214509i9E7A6C6930D673DA%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%222.png%22%20alt%3D%222.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EProblem%20Statement%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EI%20am%20getting%20an%20email%20but%20the%20at%20the%20same%20time%20the%20url%20openly%20displayed%20in%20the%20email%20body%20which%20I%20want%20as%20href%3A%20Here%20is%20the%20email%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%223.png%22%20style%3D%22width%3A%20697px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214510i8F9F599E89F0252D%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%223.png%22%20alt%3D%223.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3ESolution%20I%20have%20tried%3C%2FSTRONG%3E%3A%3C%2FP%3E%3CP%3EHere%20what%20I%20have%20tried%20but%20no%20luck%3A%20I%20provided%20the%20ItemUrl%20inside%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22%26quot%3B%40%7Bvariables('ItemUrl')%7D%26quot%3B%26lt%3B%2Fa%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E.%20But%20my%20HTML%20breaks%20and%20I%20cannot%20return%20to%20normal%20email%20body.%20In%20short%2C%20I%20can%20only%20see%20HTML%20markup%2C%20which%20is%20a%20bad%20experience%20for%20business%20user.%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%224.png%22%20style%3D%22width%3A%20538px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214511i9DD2C1927D8938C4%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%224.png%22%20alt%3D%224.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EExpected%20output%3C%2FSTRONG%3E%3CSPAN%3E%26nbsp%3B%3A%20ItemUrl%20should%20be%20inside%20href%20and%20at%20the%20same%20time%20email%20body%20is%20also%20in%20readable%20format%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%225.png%22%20style%3D%22width%3A%20547px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214512i91E30A3A950ECE54%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%225.png%22%20alt%3D%225.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CSPAN%3EAny%20help%20is%20highly%20appreciated.%20Thanks.%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FDIV%3E%3CDIV%20class%3D%22js-voting-container%20grid%20fd-column%20ai-stretch%20gs4%20fc-black-200%22%3E%26nbsp%3B%3C%2FDIV%3E%3C%2FDIV%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1608960%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EMicrosoft%20Flow%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1609794%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20-%20Email%20Template%20HTML%20breaking%20after%20adding%20ItemUrl%20in%20href%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1609794%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F769476%22%20target%3D%22_blank%22%3E%40Matt1122%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20you%20are%20well.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20understand%20you%20right%2C%20I%20think%20you%20missed%20a%20step%20in%20your%20tag.%20Just%20add%20Click%20here%20in%20between%20the%20A%20href%20tag%20and%20the%20%20tag.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETry%20%3CA%20href%3D%22%26quot%3B%26lt%3BSPAN%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3E%26nbsp%3B%3C%2FA%3E%3CA%20href%3D%22https%3A%2F%2Fwww.google.com%2F%3Fid%3D%40%257BtriggerBody()%3F%255B%2527ID%2527%255D%257D%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.google.com%3Fid%3D%40%7BtriggerBody()%3F%5B'ID'%5D%7D%3C%2FA%3E%22%26gt%3B%3CSTRONG%3EClick%20here%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20does%20the%20trick!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1612068%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20-%20Email%20Template%20HTML%20breaking%20after%20adding%20ItemUrl%20in%20href%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1612068%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20response.%3C%2FP%3E%3CP%3EI%20tried%20this%20but%20it%20didn't%20work.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20provide%20the%20direct%20link%20in%20href%20it%20accepts%20and%20HTML%20tag%20is%20enabled.%20But%20as%20soon%20as%20I%20provide%20ListItemID%20to%20it%2C%20it%20breaks.%20Screenshot%20attached%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20actual%20problem%20here%20is%20in%20forming%20the%20url%20in%20ItemUrl%20variable.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOptions%20Id%20tried%2C%20with%20multiple%20combinations.%3C%2FP%3E%3CP%3EHere%20ID%20is%20ListItemId%3C%2FP%3E%3CP%3E%3Fid%3D%5B%25%3CSTRONG%3EID%3C%2FSTRONG%3E%25%5D%3C%2FP%3E%3CP%3E%3Fid%3D%5B'%3CSTRONG%3EID'%3C%2FSTRONG%3E%5D%3C%2FP%3E%3CP%3E%3Fid%3D%40%3CSTRONG%3EID%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELink%20hardcoded%20HTML%20is%20enabled%3C%2FP%3E%3CP%3E%3CSTRONG%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%226.PNG%22%20style%3D%22width%3A%20640px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214702i1489621047EA7BB1%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%226.PNG%22%20alt%3D%226.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHTML%20breaks%20after%20providing%20dynamic%20ID%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%227.png%22%20style%3D%22width%3A%20655px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214704i68871E554C70F026%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%227.png%22%20alt%3D%227.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPlease%20let%20me%20know%20if%20any%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1612479%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20-%20Email%20Template%20HTML%20breaking%20after%20adding%20ItemUrl%20in%20href%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1612479%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F769476%22%20target%3D%22_blank%22%3E%40Matt1122%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ERegarding%20your%20HTML%20question%2C%20your%20observation%20is%20correct.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tend%20to%20get%20my%20HTML%20sorted%20before%20putting%20it%20into%20Power%20Automate%20and%20then%20running%20tests%20and%20tweaking%20things%20from%20there.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20use%20programs%20like%20Notepad%20%2B%2B%20to%20test%20my%20designs%20before%20they%20go%20into%20Power%20Automate%20(save%20the%20file%20as%20a%20*.html%20for%20testing%20in%20your%20web%20browser).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20the%20URL%20is%20still%20an%20issue%2C%20try%20removing%20the%26nbsp%3B%3CSTRONG%3E%40%3C%2FSTRONG%3E%20(see%20below).%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22capture20200826110444639.png%22%20style%3D%22width%3A%20664px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214731iA9FB98FCBE9BA28F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22capture20200826110444639.png%22%20alt%3D%22capture20200826110444639.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%3CU%3EOutput%3A%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22capture20200826112818203.png%22%20style%3D%22width%3A%20540px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214732iF080F919C82A0604%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22capture20200826112818203.png%22%20alt%3D%22capture20200826112818203.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%3CU%3EClick%20onto%20'Click%20here'%20results%20in%20ID%203%20(which%20is%20correctly%20drawn%20from%20SharePoint)%3A%3C%2FU%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22capture20200826112958275.png%22%20style%3D%22width%3A%20681px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F214733iE1A44D5A925A0BB9%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20title%3D%22capture20200826112958275.png%22%20alt%3D%22capture20200826112958275.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20that%20helps%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECheers%3C%2FP%3E%3CP%3EDamien%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1639019%22%20slang%3D%22en-US%22%3ERe%3A%20MS%20Flow%20-%20Email%20Template%20HTML%20breaking%20after%20adding%20ItemUrl%20in%20href%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1639019%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F89704%22%20target%3D%22_blank%22%3E%40Damien%20Rosario%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%20for%20your%20help!%3C%2FP%3E%3CP%3EYour%20answer%20is%20partially%20correct.%20I%20have%20mentioned%20this%20scenario%20in%20my%20query%20as%20well.%20So%20by%20using%20this%20approach%20I%20am%20getting%20proper%20href%20link%20in%20my%20incoming%20emails.%20However%26nbsp%3Bthe%20issue%20here%20is%20with%20HTML%20tags%20in%20MS%20Flow%20email%20template%20body%20like%20in%20your%20screenshot%20%3C%2FP%3E%3CP%3E%3CA%3EClick%20here%3C%2FA%3E%3C%2FP%3E.%26nbsp%3B%3CP%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EWhat%20I%20am%20trying%20to%20do%20here%20is%20to%20have%20href%20link%20in%20incoming%20emails%20and%20no%20HTML%20tag%20view%20in%20MS%20Flow%20email%20template%20body%20%3A)%3C%2Fimg%3E%20Hope%20you%20get%20it.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EBy%20the%20way%20I%20am%20currently%20running%20my%20flows%20using%20this%20approach%20only.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

I have a simple requirement of sending an email with custom ItemUrl and ID in the email body.
Current Scenario
 1.png
 
 
ItemUrl variable contains - https://www.google.com?id=@{triggerBody()?['ID']}. Here Id is incrementing.

2.png

Problem Statement

I am getting an email but the at the same time the url openly displayed in the email body which I want as href: Here is the email

 3.png

Solution I have tried:

Here what I have tried but no luck: I provided the ItemUrl inside <a href="@{variables('ItemUrl')}"</a>. But my HTML breaks and I cannot return to normal email body. In short, I can only see HTML markup, which is a bad experience for business user.

 

4.png

Expected output : ItemUrl should be inside href and at the same time email body is also in readable format

5.png

Any help is highly appreciated. Thanks.

 

 
4 Replies

Hi @Matt1122 

 

Hope you are well.

 

If I understand you right, I think you missed a step in your tag. Just add Click here in between the A href tag and the </a> tag.

 

Try <a href=" https://www.google.com?id=@{triggerBody()?['ID']}">Click here</a>

 

Hope that does the trick!

 

Cheers

Damien

@Damien Rosario 

 

Thanks for your response.

I tried this but it didn't work.

 

If I provide the direct link in href it accepts and HTML tag is enabled. But as soon as I provide ListItemID to it, it breaks. Screenshot attached

 

The actual problem here is in forming the url in ItemUrl variable.

 

Options Id tried, with multiple combinations.

Here ID is ListItemId

?id=[%ID%]

?id=['ID']

?id=@ID

 

Link hardcoded HTML is enabled

6.PNG

 

HTML breaks after providing dynamic ID

7.png

 

 

Please let me know if any solution.

 

 

 

 

Hi @Matt1122 

 

Regarding your HTML question, your observation is correct. 

 

I tend to get my HTML sorted before putting it into Power Automate and then running tests and tweaking things from there.

 

I use programs like Notepad ++ to test my designs before they go into Power Automate (save the file as a *.html for testing in your web browser).

 

If the URL is still an issue, try removing the @ (see below).

 

capture20200826110444639.png

Output:

 capture20200826112818203.png  

Click onto 'Click here' results in ID 3 (which is correctly drawn from SharePoint):

 

capture20200826112958275.png

 

Hope that helps?

 

Cheers

Damien

Hi @Damien Rosario 

 

Thanks for your help!

Your answer is partially correct. I have mentioned this scenario in my query as well. So by using this approach I am getting proper href link in my incoming emails. However the issue here is with HTML tags in MS Flow email template body like in your screenshot <p><a>Click here</a></p>. 

 

What I am trying to do here is to have href link in incoming emails and no HTML tag view in MS Flow email template body :) Hope you get it.

 

By the way I am currently running my flows using this approach only.