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
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (2,842)