cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpragsdale
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
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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

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