Forum Discussion
MS Flow - Email Template HTML breaking after adding ItemUrl in href
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
HTML breaks after providing dynamic ID
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).
Output:
Click onto 'Click here' results in ID 3 (which is correctly drawn from SharePoint):
Hope that helps?
Cheers
Damien