cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Reason
Advocate I
Advocate I

When an HTTP request is received - access to data from json

Hi,

I'm having trouble extracting the data I receive with "When an HTTP request is received". Data is received in two objects. Headers and queries. I need to get to the information contained in "queries", and I've tried a lot of ways. But I don't know how to access them and operate on them.

 

Bez-nazwy-1.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
Expiscornovus
Super User
Super User

Hi @tom_riha,

 

As far as I can tell from the screenshot there is no body part in the response. In this instance it is probably easier to use the triggeroutputs shorthand/function instead.

 

Try something like below to get for example the user_id.

 

triggerOutputs()?['queries']?['user_id']

 

 

View solution in original post

3 REPLIES 3
tom_riha
Super User
Super User

Hello @Reason ,

you can access any value from the JSON using an expression as explained in more detail here: https://tomriha.com/how-to-get-a-specific-value-from-a-json-object-in-power-automate/

e.g.

triggerBody()?['queries']?['form_id']


[ If I have answered your question, please Accept the post as a solution. ]
[ If you like my response, please give it a Thumbs Up. ]

[ I also blog about Power Automate solutions even for non-IT people. ]
Expiscornovus
Super User
Super User

Hi @tom_riha,

 

As far as I can tell from the screenshot there is no body part in the response. In this instance it is probably easier to use the triggeroutputs shorthand/function instead.

 

Try something like below to get for example the user_id.

 

triggerOutputs()?['queries']?['user_id']

 

 

Reason
Advocate I
Advocate I

Thanks! Works 🙂 

Helpful resources

Announcements
October Events

Mark Your Calendars

So many events happening this month - don't miss out!

 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Users online (2,577)