Solved! Go to Solution.
Hi @Anonymous,
It seems that you are trying to concat a URL of an image.
I have tested the following code, please check it for a reference:
if(greater(variables('Conduct2'),50),'',concat('<img scr="',variables('firebrick'),'"','height="25" width="',string(sub(50,variables('Conduct'))),'">'))
Please take a try with it on your side.
Best regards,
Mabel
Hi @Anonymous,
It seems that you are trying to concat a URL of an image.
I have tested the following code, please check it for a reference:
if(greater(variables('Conduct2'),50),'',concat('<img scr="',variables('firebrick'),'"','height="25" width="',string(sub(50,variables('Conduct'))),'">'))
Please take a try with it on your side.
Best regards,
Mabel
Thanks Mabel,
I see the problem now. I was trying to use the single quote variant of the <img> tag (because the variable I'm refrencing is a data URI), forgetting that I need to use an escape character '' , or else Flow thinks it's part of an expression, rather than a string.
Your way, with the double quotes, also works, but if you're trying to embed your image with a data URI, you need 2 single quotes in a row.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Read the latest about new experiences and capabilities in the Power Automate product blog.
User | Count |
---|---|
27 | |
26 | |
25 | |
25 | |
18 |
User | Count |
---|---|
57 | |
44 | |
33 | |
31 | |
30 |