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

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
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (1,509)