cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
HemanthN
Helper III
Helper III

How to get HTTP GET output response from the flow and set it to a variable

Hi,

 

I have created a flow and I am trying to get the output from the HTTP GET request that is in the form of object and array and I need to set the object output value to two variables. I am trying to set the output values from the HTTP request to variables. But I am getting null in return.

 

s1.jpg

I need to set the above object output to two different variables. Can anyone help me out in this? 

1 ACCEPTED SOLUTION

Accepted Solutions
jinivthakkar
Super User
Super User

@HemanthN Here is how I did it :

 

Input :

jinivthakkar_0-1619005985951.png

Output:

jinivthakkar_1-1619006018818.png

My flow:

jinivthakkar_2-1619006080637.png

please refer highlighted expression - outputs('Compose')['results'][0]['variables.empLocation']

 

Similarly you can get the emp name in another compose and use as required.

 

Hope this helps.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

 

 

View solution in original post

1 REPLY 1
jinivthakkar
Super User
Super User

@HemanthN Here is how I did it :

 

Input :

jinivthakkar_0-1619005985951.png

Output:

jinivthakkar_1-1619006018818.png

My flow:

jinivthakkar_2-1619006080637.png

please refer highlighted expression - outputs('Compose')['results'][0]['variables.empLocation']

 

Similarly you can get the emp name in another compose and use as required.

 

Hope this helps.

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

 

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Users online (2,955)