I am testing a flow with HTTP action, the raw output of it is following:
The value I want to extract is in field "$content". I have already tested this value as string with "data:image/jpeg;base64," in front of it, and function "dataUriToBinary()" to create the image, and it worked. So that is why I am fixed on extracting this value, but if there is another way to upload an image from an URL into a Dataverse table, I am open for any suggestions.
My approach is: use the Parse Hson action, then put the field "$content" value into a variable, but when I use Parse Json action I am getting an error:
I do not know how to tackle this error. I have already experimented with converting the HTTP output into string, and then Parse Json, but it did not worked.
You do not need to use the Parse JSON action to get the content and content type. You can use two expressions to get it from the body of the HTTP request:
body('HTTP')['$content-type'] gets the content type
body('HTTP')['$content'] gets the content
It returns:
Getting the image into Dataverse, that is something someone else will need to assist you with. Good luck.
1 people found this reply helpful.
Was this reply helpful?YesNo
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.