When building an app in powerapps for example, users click a button, a form is submitted and we navigate to a succes-screen. BUT in reality, there's a flow activated in the background that runs and errors might occur. So while users' minds are set at ease because they saw the succes-screen, there's no guarantee that the flow has run succesfully.
I would like for the powerapp to wait to navigate to a second screen, based on the flow's outcome: is the flow successful, then the app navigates to e.g. screen 2: SUCCESS. Is the flow unsuccessful, then the app navigates to e.g. screen 3: NO SUCCES. PLEASE CONTACT...
I've already tried two ways of solving this:
1. Using the REACTION TO POWERAPP OR STREAM in the flow
BUT the power automate flow is started by a trigger (when an item is created) ... so the REACTION TO POWERAPP OR STREAM is useless in this case.
2. As a last step in the flow, I changed a field in the sharepoint list (FlowStatus = Success). Then I added a timer to the app. The timer starts (as well as the flow) at the push of the button. At the ONTIMER_END I refresh the sharepoint list and lookup the value of the FlowStatus. Based on the value, I navigate to screen 2 or 3. Downside of this solution, is that you cannot predict how long it will take for the flow to run and change the sharepoint list field. 10 seconds might be too short, so navigate won't be activated. 60 seconds might be too long so the user looses valuable time (and patience)
I find it rather strange that you can connect between powerapps and power automate in only one way - you can start a flow through powerapps, but there's no linking back for feedback concerning the flow. Or is there? Anyone succeeded in finding a solution for this problem? Anxious to find out!