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']

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


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']

 

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Reason
Advocate I
Advocate I

Thanks! Works 🙂 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,898)