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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,417)