cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpragsdale
Level: Powered On

OnVisable functions

I'll try to summarize this the best can...

  • I have an App built from a SharePoint list.  One of the columns is Date Completed that gets populated at the end.
  • I have a Flow that is triggered when a new item is created in the list.  
  • The Flow runs an Azure Runbook.  (Takes 20-30 seconds)
  • I am collecting Status of the Runbook once it complete.
  • If the Runbook is completed successfully, the SharePoint list is updated and the Date Completed field is now populated.

In my app, once the form is submitted, I have it navigate to a screen called running.  I am trying to have that screen (using OnVisable) check the Date Completed Data Card field to see if it is blank, if so, refresh the screen until the Date Completed Data Card is populated and then navigate to a completed screen.

 

Has anyone done something like this and is able to offer some assistance?

2019-12-05.jpg  

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: OnVisable functions

@jpragsdale 

You'll want to delete REFRESH from your current function within OnVisible.  Unfortunately, its not allowed in there.  I suggest you look into how to return data from a flow to PowerApps.  Once data is returned from the Azure flowbook you could set a variable to True.  The variable could be placed in the OnVisible property to toggle your loading screen.

 

I suggest you check out the article below and adapt the technique to your problem.

 

Link To Article:

https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/

 

---
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
Super User
Super User

Re: OnVisable functions

@jpragsdale 

You'll want to delete REFRESH from your current function within OnVisible.  Unfortunately, its not allowed in there.  I suggest you look into how to return data from a flow to PowerApps.  Once data is returned from the Azure flowbook you could set a variable to True.  The variable could be placed in the OnVisible property to toggle your loading screen.

 

I suggest you check out the article below and adapt the technique to your problem.

 

Link To Article:

https://flow.microsoft.com/en-us/blog/return-data-to-powerapps/

 

---
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
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (5,411)