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
October Events

Mark Your Calendars

So many events that are happening this month - don't miss out!

Ignite 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Power Apps Africa Challenge 2022

Power Apps Africa Challenge

Your chance to join an engaging competition of Power Platform enthusiasts.

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