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."




Helpful resources

Announcements
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 Kudoed Authors
Users online (1,993)