I am having issues pulling a image from a SharePoint site into a String variable in my flow. The image 100% exists and is even being used already in another flow as well.
I pull the image through using: Get file content using path. I then initialize a string variable with this input:
<img src="data:@{body('Get_file_content_using_path')['body']['$content-type']};base64,@{body('Get_file_content_using_path')['body']['$content']}" alt="My Image"/>
here is a screenshot of the flow at this point as well.
When I try to run the flow I get this error:
Unable to process template language expressions in action 'Initialize_variable_varApproverSignature' inputs at line '0' and column '0': 'The template language expression 'body('Get_file_content_using_path')['body']['$content-type']' cannot be evaluated because property 'body' doesn't exist. Property selection is not supported on content of type 'image/png'. Please see https://aka.ms/logicexpressions for usage details.'.
Solutions online say to rebuild the flow which I have and I got the exact same error. Can anyone help? Have no idea what else to try currently. Thank you in advance
Solved! Go to Solution.
hi @CFernandes no luck with that one the flow wouldnt run however this one worked:
<img src="data:@{body('Get_file_content_using_path')['body']['$content-type']};base64,@{body('Get_file_content_using_path')['body']['$content']}" alt="My Image"/>
Thank you for your help anyway 🙂
Hey @Pxtavern
Mate try this
img src="@{body('Get_file_content_using_path')['$content-type']};base64, @{body('Get_file_content_using_path')['$content']}" alt="Red dot" /0
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.
hi @CFernandes no luck with that one the flow wouldnt run however this one worked:
<img src="data:@{body('Get_file_content_using_path')['body']['$content-type']};base64,@{body('Get_file_content_using_path')['body']['$content']}" alt="My Image"/>
Thank you for your help anyway 🙂
Hey @Pxtavern
I am glad that the problem has been resolved. I am using the Modern Power Automate Designer experience and my formula works for me 🙂
I'm getting the same error though for me it's occurring when attempting to set the variable after initially creating it. The idea is when a form is submitted it checks for specific values. If the condition is met, the variable changes one way, if the condition is not met, the variable changes another way.
I've tried multiple ways to write the code, but it doesn't appear to be working with any method including the ones previously mentioned here. Any suggestions?
Hi @Pxtavern , glad this was fixed. I noticed the new code that worked is exactly the same as the original code that you had problems with.
Original Code: <img src="data:@{body('Get_file_content_using_path')['body']['$content-type']};base64,@{body('Get_file_content_using_path')['body']['$content']}" alt="My Image"/>
Functional Code: <img src="data:@{body('Get_file_content_using_path')['body']['$content-type']};base64,@{body('Get_file_content_using_path')['body']['$content']}" alt="My Image"/>
I'm having the exact same issue, and have tried both of these codes, but neither worked. Can you explain what you did differently?
Thank you very much!
I didn't even realise that they were the same Sorry its been too long since I did this I have no idea what the flow was even for anymore. I don't remember doing anything differently. If I find the flow I will reply here if I can see any differences
I understand, it's been months. If you're able to find it again to check I'll gladly appreciate it, but no pressure.
Thanks a bunch, hope you enjoy your day!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
45 | |
16 | |
15 | |
14 | |
13 |
User | Count |
---|---|
78 | |
40 | |
28 | |
22 | |
19 |