cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Memorable Member
Memorable Member

Re: Calling Flows asynchronously from PowerApps

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
Highlighted
Memorable Member
Memorable Member

Re: Calling Flows asynchronously from PowerApps

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors
Users online (5,900)