cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Sending multiple collection data to ms flow using PowerApp.Run(JSON(Coll1) + JSON(Coll2) + JSON(Call3) isn't working

Hi, 

 

I have 5 different collections on powerapps form, all of them are having unique column called ID. all these collections may be different numbers of rows based on user's requirement. 

 

I need to send all of these collections data to flow in form of  JSON, i was able to send one collection data using PowerApp.Run(JSON(Collection1)), however not sure how to send multiple collections to flow. 

 

Can anyone direct me to the right path ?

 

any help on this is highly appreciated.

 

 

 

Thank you!

Aman

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to use multiple collections json as parameter to run flow in PowerApps?

I'm afraid it's not supported to send multiple collections directly to flow in PowerApps currently.

Currently, Microsoft Flow only accepts String Text value as Parameter value passed from an app.

As an alternative way, I suggest you concatenate these json(collection) into a Single one String value with a specific separator,

then pass this to flow. Within the flow, you could use Split function to split these collections.

For example:

 

PowerApp.Run(Concatenate(JSON(Collection1),"|",
                         JSON(Collection2),"|",
                         JSON(Collection3),"|"
                         ))

Here's a doc about how to use split function in flow for your reference:

https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

Here's a similar issue for your reference:

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Using-Flow-to-send-collection-data-in-PowerApps/td-p/172570

 

Best regards,

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

2 REPLIES 2
v-yutliu-msft
Community Support
Community Support

Hi @Anonymous ,

Do you want to use multiple collections json as parameter to run flow in PowerApps?

I'm afraid it's not supported to send multiple collections directly to flow in PowerApps currently.

Currently, Microsoft Flow only accepts String Text value as Parameter value passed from an app.

As an alternative way, I suggest you concatenate these json(collection) into a Single one String value with a specific separator,

then pass this to flow. Within the flow, you could use Split function to split these collections.

For example:

 

PowerApp.Run(Concatenate(JSON(Collection1),"|",
                         JSON(Collection2),"|",
                         JSON(Collection3),"|"
                         ))

Here's a doc about how to use split function in flow for your reference:

https://www.techmikael.com/2017/05/saving-collection-of-images-from.html

Here's a similar issue for your reference:

https://powerusers.microsoft.com/t5/Building-PowerApps-Formerly/Using-Flow-to-send-collection-data-in-PowerApps/td-p/172570

 

Best regards,

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

Anonymous
Not applicable

Thank you @v-yutliu-msft , that helped me... 

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

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (43,149)