cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
svijay_001
Level: Powered On

Passing the PowerApps Collection to MS Flow

I was actually looking for a way to pass the entire collection that was there in the PowerApps to the MS Follow for subsequent action to be taken based on data at each row of the collection.

 

There is no direct way to achieve it at this point of time.

Doing a forall & concatenate seemed slow and complicated respectively.

 

I found an easy way to achieve the above. 

 

Here's what I did : 

  1. Converted the collection to the JSON
    • Set(JSONName, JSON(CollectionName ))
    • The collection was now formatted to JSON and got stored in the variable JSONName
  2. Created a flow which parses the JSON which is gets passed from the PowerApps
    Powerapps_FLowcollection.png
  3. From PowerApps you can pass the JSON Formatted Collection (JSONName)
    Flowname.Run(JSONName)

 

Now you can manipulate collection data at the flow end like anyother JSON data. 

 

Note/Tip & Trick :

For the schema of the JSON that needs to be provided at the flow end in the Parse JSON step.

You can set the text value of label as the Json Variable(JSONName). Copy paste the content of the label  in the Parse JSON flow step.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Passing the PowerApps Collection to MS Flow

Hi @svijay_001 ,

Thanks for your sharing!

The new function of JSON is quite useful.

Here's a doc about how to use json:

https://powerapps.microsoft.com/en-us/blog/json-for-canvas-apps/

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Super User
Super User

Re: Passing the PowerApps Collection to MS Flow

@svijay_001 

Two thumbs up for the new JSON function!!

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Community Support Team
Community Support Team

Re: Passing the PowerApps Collection to MS Flow

Hi @svijay_001 ,

Thanks for your sharing!

The new function of JSON is quite useful.

Here's a doc about how to use json:

https://powerapps.microsoft.com/en-us/blog/json-for-canvas-apps/

 

Best regards,

Community Support Team _ Phoebe Liu

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

dcoxi21
Level: Powered On

Re: Passing the PowerApps Collection to MS Flow

Hey!

Is there any way you could post more on what you have in the schema and the contents of your collection? I'm working on adding the same type of functionality, but when I display the variable it gives me a hard coded response on what is in the collection. My app is intended to act as a form that will be sent to sql server, so the inputs are going to vary. I'm wondering how I would call the values if they're going to be changing.

 

Thanks!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors (Last 30 Days)
Users online (4,818)