Hi, I'm running into the following error: "The property 'content' must be of type JSON in the 'ParseJson' action inputs, but was of type 'image/png'."
I'm using an HTTP action to call an external API that only turns the two objects shown in the image. How would I parse this as JSON or fix this error?
Hi @mercobenitas,
I add a compose after my HTTP action. Insert my HTTP output in this. Then used what rdobryanskyy wrote to get the content (rename Action_name):
outputs(‘Action_name’)?[body/$content’]
See outputs:
Is this right? if so, what are the next steps.
FYI: what I am trying to do is: When a user submits a MS form, an API call is sent to the QR code generator tool using HTTP when gets back the following output:
Try adding a compose after your HTTP action. Insert your HTTP output in this. Then use what rdobryanskyy wrote to get the content (rename Action_name):
outputs(‘Action_name’)?[body/$content’]
Hi @cbernier12 & @Jcook , I am stuck with the same issue. Could you please take a look at my flow and help me out. I am trying to send out an email with the QR code (PNG file) that is being generated using the HTTP. Could you please let me know what the next steps on this. Thanks
This is the successful output in the Response action:
Instead of creating a separate Array you can also use [<your compose output>], works for me. See below. Dump the json first in a compose, so you can copy the schema for the Generate from sample.
.
To use a part of the output, try to use this in expressions:
outputs('Action_name')?['body/$content']
Hi @cbernier12
Awesome to hear, could you mark a post as a solution. (This could be your post as well) Which ever reply was the solution to your question.
@Jcook never mind, needed to remove and re-add the Flow data object from data sources and it started working. I forgot to do that...
Need both values for content and content-type to show up in the Power Apps collection.
Hi @cbernier12
What exactly is the expected outcome? Are you trying to get the Image into Power Apps?
Ok what I added is initialize variable, parse JSON, and Response actions and the output looks ok, however the actual values don't make to the Power Apps collection, the columns do, just not the values. Any idea on how to send the the values of content-type and content to Power Apps? The flow is run from Power Apps and as stated the two columns in the collection are created.
This is the successful output in the Response action:
Tomac
986
Moderator
stampcoin
699
Super User 2025 Season 2
Riyaz_riz11
577
Super User 2025 Season 2