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.
Solved! Go to Solution.
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']
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']
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']
Thanks! Works 🙂