web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Passing the PowerApps ...
Power Apps
Answered

Passing the PowerApps Collection to MS Flow

(13) ShareShare
ReportReport
Posted on by Microsoft Employee

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.

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @svijay_001 

    Two thumbs up for the new JSON function!!

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    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 Power Platform Member Profile Picture
    Microsoft Employee on at

    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!

  • svijay_001 Profile Picture
    Microsoft Employee on at

    I did not understand your questions ? Can you please elaborate ? 

     

  • RyanXExner Profile Picture
    96 on at

    Thank you for the post, it really helped!  We found out that embedding the JSON format directly into the Flow Param works as well (just in case you don't want to have to initiate another variable).


    'SampleFlow'.Run(JSON(colSampleCollection, JSONFormat.IgnoreBinaryData))

    @Anonymous, the following schema should allow you to parse the JSON input with keeping the flexibility on the properties:

     

    {
      "type""array",
      "items": {
        "type""object"
      }
    }
  • MustafaHussain Profile Picture
    173 on at

    Hi @svijay_001  @v-yutliu-msft  

    I have Dataverse as a Datasource and I have a gallery of the data coming from there

    and I am getting this error when I set the collection in JSON format

    MustH_1-1671131987567.png


    Please help

  • PaulUK86 Profile Picture
    43 on at

    Is the first command done in the powerapp or in power automate?

    • Set(JSONName, JSON(CollectionName ))

    I think this function could really help as I need to pass a collection to power automate and then into a word template! Thank you for any help!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 846

#2
Valantis Profile Picture

Valantis 532

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard