I am trying to send mails in PowerApps using a flow.
It will be for multiple users. There is a ForAll and inside that there is another ForAll.
Inside one of the ForAll I will patch new records to a SharePoint list.
Then I call my flow to send emails to those records in that SharePoint list.
Once I send the emails I will delete all the records from that List.
Since my flow takes few seconds to run, but by the time it will run records of the Sharepoint list will be deleted.
What I am trying to achieve is how to add a delay between running the flow and deleting the records in the Sharepoint list inside ForAll.
Sample Code;
ForAll(
XXXList,
ForAll(
XXXList2,
If(conditon=true ,
Patch(add new records to xxxList3);
);
);
FlowSendEmails.Run();
***I want to add a wait/delay between running the flow and deleting records of the list
Delete( xxxList3);
);