cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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

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

@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
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,663)