cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
kevingeorget
Resolver I
Resolver I

Calling Flows asynchronously from PowerApps

I've a PowerApp that on-start of the app does the following-

ForAll(
colMyData,
Collect(
colReturnedResults,
{
Data: 'MyFlow'.Run(JSON(Table(ThisRecord))).returncollection
}
)
);
For each of the record in ColMyData, the flow is called.
This call is synchronous in a way that the flow gets triggered one after the previous one completes.
Is there a way I can make this asynchronous. 
It would help to improve the performance of the app.
Any help appreciated.
Thanks,
Kevin
1 ACCEPTED SOLUTION

Accepted Solutions
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @kevingeorget ,

On App Start, you can Call the Flow.

Suppose your collection has 100 records then your app takes too much time to do the Process.

To handle this situation you can follow the below approach.

 Instead of doing forAll in App Directly send the Collection data to flow,

and Modify your flow and Parse the Data that your send and use Apply each and do the action as per your requirement.

Hope that will help you to resolve your issue.

Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."




View solution in original post

1 REPLY 1
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @kevingeorget ,

On App Start, you can Call the Flow.

Suppose your collection has 100 records then your app takes too much time to do the Process.

To handle this situation you can follow the below approach.

 Instead of doing forAll in App Directly send the Collection data to flow,

and Modify your flow and Parse the Data that your send and use Apply each and do the action as per your requirement.

Hope that will help you to resolve your issue.

Thanks,
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."




View solution in original post

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

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (64,406)