@Mr-Dang-MSFT,
Thank you for your reply.
This issue is that the screen needs to be refreshed with the value that is returned from the "Respond to PowerApps" action from flow. I have been sucessful in using returned values in visible actions, to make things visible turn on/off, but.. there is no way that I can find to execute a refresh command. Simply putting refresh() after my run command will not work. The flow can take 10-20 seconds to execute before returning a value. There is no feedback to tell the command in powerapps to wiat for the flow to complete. Once it executes, it moves on to the next command. There is no concurrent() being used.
This is my command for running my flow.
UpdateContext({ShowKDLPostPopup:false}); ClearCollect(FileInObs,KDL_File_Management.Run(ECN_ERelease_BrowseGallary.Selected.Rev-1,ECN_ERelease_BrowseGallary.Selected.Part_x0020_Number,LookUp(Drawing_Vault,DV_PartNumber=ECN_ERelease_BrowseGallary.Selected.Part_x0020_Number And DV_RevisionNumber=Value(ECN_ERelease_BrowseGallary.Selected.Rev),ID)))Adding a Refresh() at the end of that line will not wait for the returned value from the Flow. It will refresh the screen immediately after the flow runs, not after the flow is finished.
It would work to use a timer, but you would have to put a delay in there long enough to cover the longest wait time for the flow to finish. That has too much variability, so there would be a lot of unnecessary wait time for most cases. I want the refresh to occurr exactly when the flow is completed, no sooner, no later.
Respond to Powerapps works great for visible controls because I can have it return a true/false value which will fit perfect in the Visible control.