cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kmk
Helper V
Helper V

How to trigger Flow with ForAll

Hi Mates,

i would like to call flow with ForAll, but normally its not throws error, but when run the flow then it show error 

Yes as you see we need two input parameters from Powerapps to Flow, how refer intStartnum, intCount parameters.

parameters.PNG

highly appreciated for your help. 

1 ACCEPTED SOLUTION

Accepted Solutions

@kmk ,

I think the way you have defined your collection is wrong. Try something like this :

 

ClearCollect( myTable,
Table(
{ 'Quantity Requested': 6, 'Quantity Available': 3 },
{  'Quantity Requested': 10, 'Quantity Available': 20 },
{  'Quantity Requested': 4, 'Quantity Available': 11 },
{  'Quantity Requested': 7, 'Quantity Available': 6 }
)
)

 

Replace it with your fields, ofcourse.

 

Regards,

KK

View solution in original post

4 REPLIES 4
kunalkankariya
Helper I
Helper I

What is the type of your parameters in flow? Can you post a screenshot where you initialize both the variables?

Hi @kunalkankariya 

Thanks for reply,

Yes its Int format, just referring  to pass TopCount, SkipCount 

 

intvariable.PNGexcelvariable.PNG

 

@kmk ,

I think the way you have defined your collection is wrong. Try something like this :

 

ClearCollect( myTable,
Table(
{ 'Quantity Requested': 6, 'Quantity Available': 3 },
{  'Quantity Requested': 10, 'Quantity Available': 20 },
{  'Quantity Requested': 4, 'Quantity Available': 11 },
{  'Quantity Requested': 7, 'Quantity Available': 6 }
)
)

 

Replace it with your fields, ofcourse.

 

Regards,

KK

View solution in original post

Hi @kunalkankariya 

 

Really great, working as excepted

ClearCollect( myTable,
Table(
{ StarNumber:1, QuantityMigrate: 20 }));
ForAll(myTable, PowerAppsbutton.Run(QuantityMigrate,StarNumber))
//Set(varGetResponce,PowerAppsbutton.Run(20,30))

 

but if you see below commented, earlier i used to set variable(VarGetResponce.error) this will give status of the flow, so can you also help me how can variable in ForAll else if i set out side then how to get response from flow.

i also want to use vargetresponce by any chance can we set it in ForAll like

ForAll(myTable,Set(varGetResponce,PowerAppsbutton.Run(QuantityMigrate,StartNumber)))

 Final help if possible

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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