cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
selimdag
Helper I
Helper I

Delay redirection of an entity form

Hi all, 

I have an entity form, which allows user to create records. I am redirecting the user  to another web page with the same record after saving the entity from. The reason of that is the entity form contains a sub grid and the sub grid isn't shown in the entity form before creating the record. Until here everything works fine. 

 

I built a Power Automate flow to relate this entity record to another entity (mainly to populate the sub grid in my entity form). The flow works also fine but it takes 1 or 2 seconds to finish its run. The problem is that sometimes redirecting user to the next page takes less time than flow's running time and the record in the sub grid won't appear after redirecting. 

 

I thought about delaying the redirection after saving the first entity form around 3 seconds to wait flow finish its run but I don't know how I can do that. 

 

Can someone help me with that? 

Thanks in advance.

3 REPLIES 3
OliverRodrigues
Super User II
Super User II

Hi

 

you could add a JS in your seconds web page and force the reload, but that's not exactly a nice approach, it is not guaranteed that your subgrid will have data anyway

 

my opinion in this scenario you shouldn't be using Power Automate, this should happen in the same transaction as your insert, so this should be a Sync workflow/plugin

A Power Automate flow at the moment only supports async processes as far as I am aware

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

I didn't like this approach too but it was the easiest way. I tried relating the records with a real-time workflow but it doesn't work within an OOB workflow. 

you might be able to achieve with custom code then

 

a plugin in the post-create: https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/tutorial-write-plug-in




If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Power Apps Portals Super User


Oliver Rodrigues


 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,672)