Feb 27 2020 07:55 AM
Mar 04 2020 05:13 AM
Hi @FlowDev you need to add a Parse JSON action to your flow. The easiest way to get the schema is to run your flow as it is and copy the JSON code for the image (in my example I'm uploading the details from the form to Excel):
In your flow add the Parse JSON action, in the content box select Image from the dynamic content, click Generate from Sample and paste in the code you copied:
You will then have an apply to each where the output box is Body (from the Parse JSON action), and you can select link from the Parse JSON section of the dynamic content:
The result in the spreadsheet will be just the url without all the other stuff:
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Aug 06 2020 01:45 PM
@RobElliott I have successfully setup the Parse JSON for extracting image link, however, I am pulling the image from an optional field of a form and the flow fails if there is no image uploaded in the form. How can I adjust the parse to allow for null/no images?
Aug 15 2021 09:52 PM - edited Aug 15 2021 09:53 PM
Thanks a lot @RobElliott I too had a issue in the similar context and your solution worked very well. Thank you.
Mar 03 2022 12:07 AM
Jul 27 2023 01:57 PM
@RobElliott From where can I get the JSON code for the image?
Dec 21 2023 02:21 PM
@RobElliott Hi Rob, just to follow up on this, my image field is an optional field, and when there is no image attached to the share point entry, then my parse JSON fails, with the error that the data type cannot be ‘Null’ and a string is expected. It would be really helpful if you can help me with the same!
Dec 21 2023 02:38 PM