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

Pass value from power automate to power app

Hi,

We are in the process of migration from InfoPath form to power app form. I need to use the values returned from power automate to power app combo box control. ( Items property). 

Note: In power automate i am using get list items which will get the value from List which is present in another site collection. The value returned i need to pass to power app combobox control. The main reason we are using automate is that particular list have more than 12 people picker. So that's why we are using automate otherwise i can add that list as a datasource in power app.

 

Any idea on this.

 

Thanks.

22 REPLIES 22

Hi @Pstork1 ,

I am using sample output from Parse Json (in Flow run history) as a Schema for HTTP response,.

 

 

gokulnathSTG_0-1620831320159.png

HTTP response screenshot:

gokulnathSTG_1-1620831405042.png

gokulnathSTG_2-1620831451894.png

gokulnathSTG_3-1620831662494.png

 

 

Anything missing?. One thing, Where we need to paste the JSON schema in Body or Generate from Sample?

 

Pstork1
Dual Super User III
Dual Super User III

Based on those screenshots you are using the wrong input for the schema and the response.  Instead of the Body of the Parse JSON it needs to be the array inside the Body.  If you look at the JSON schema its an object, the array is embedded a level down.  You need to return the array.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
gokulnathSTG
Helper III
Helper III

Hi @Pstork1 ,

I have updated the Schema, Attached the screenshot,

gokulnathSTG_0-1620834629344.png

gokulnathSTG_1-1620834645801.png

gokulnathSTG_2-1620834663259.png

, But in How to change it here (body) ?

gokulnathSTG_3-1620834729230.png

 

 

Pstork1
Dual Super User III
Dual Super User III

Can you show me the dynamic content produced by the Parse JSON?  There should be other entries besides Body.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1 ,

 

This is the Output produced from Parse Json Step,

gokulnathSTG_1-1620841017317.png

 

 

below is screenshot of HTTP Response output,

gokulnathSTG_2-1620841217232.png

 

Pstork1
Dual Super User III
Dual Super User III

I wanted to see the list of dynamic content variables available after the Parse JSON ran. But in your Parse JSON did you use 'Body' or 'body'?  It should be 'body' and that might be why you are getting the wrong output from your Parse JSON.  The schema should look like this.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
gokulnathSTG
Helper III
Helper III

Hi @Pstork1 

 

Below is the Parse Json screenshot,

gokulnathSTG_0-1620845538511.png

 

Response screenshot,

gokulnathSTG_1-1620845862494.png

 

I can see all data in Response, but Powerapp it is not populating..:(

Pstork1
Dual Super User III
Dual Super User III

As I said, the array you want to return is called 'body' (lower case b).  But in your screenshot of Response you are processing 'Body', (which is upper case B).  You are returning the object, not the array.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1 ,

 

Please tell me how to change, I have used body expression. but after closed and reopened my flow, It again changed to Capital  (Body).

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,171)