I am trying to find anything in the documentation when googling for this but unable to find any. I know it must be simple but, how do I read a specific value returned in JSON from the response body resulting from HTTP action? I got back the result successfully in HTTP action but I want to get only 1 value there and store it in a variable.
Solved! Go to Solution.
If I'm understanding your question correctly, you should also be able to reference the value by using an expression like this:
body('HTTP_Action_name_here')?['body_element_name_here']
Without seeing your flow, I can't guess exactly what the expression would be, but hopefully you can fill in the gaps.
Hello Team,
Here is what you need to do after the Send an HTTP request action -
Initialize Variable for storing the parsed ID (that we are going to do in the next steps) -
Parse JSON to Save the ID from the JSON -
Apply to each
Let me share a video tutorial on my youtube channel that will help you understand this very easily.
Video tutorial - https://www.youtube.com/watch?v=VT20p_LBU28
Navigate to 14 minutes and 39 seconds over here, where I have done exactly the same thing that you want. Only thing is I am grabbing a different entity. You can grab ID by referring the same URL.
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
If I'm understanding your question correctly, you should also be able to reference the value by using an expression like this:
body('HTTP_Action_name_here')?['body_element_name_here']
Without seeing your flow, I can't guess exactly what the expression would be, but hopefully you can fill in the gaps.
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
74 | |
27 | |
18 | |
16 | |
14 |
User | Count |
---|---|
138 | |
44 | |
32 | |
32 | |
29 |