web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Onvisible not firing f...
Power Apps
Unanswered

Onvisible not firing for screens

(0) ShareShare
ReportReport
Posted on by 195

I have a powerapps, where OnStart, I am retrieving users from office365group in a collection.

 

ClearCollect(O365SubmitterGroup_Col,Office365Groups.ListGroupMembers("XXXX").value);
Set(IsSubmitter,If(!IsBlank(LookUp(O365SubmitterGroup_Col,displayName=User().FullName)),true,false));

 

ClearCollect(O365ApproverGroup_Col,Office365Groups.ListGroupMembers("YYYY").value);
Set(IsApprover,If(!IsBlank(LookUp(O365ApproverGroup_Col,displayName=User().FullName)),true,false));

 

In the OnVisible property of the Submitter screen

If(IsSubmitter,true,false)

 

In the OnVisible property of the Approver screen

If(IsApprover,true,false)

 

When I add user in Office365Group, I am redirected correctly to the submitter screen. However, when i remove the same user from submitter group and add in Approver group, I still redirect to the submitter screen, but my collection shows the user has been moved correctly.  Here the OnVisible should fail for submitter and pass for Approver.

 

I am not sure where the mistake is, Any advice would be helpful. Thanks.

Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Kumar9024021 ,


    How did you remove the user from the group? What is formulas you used to navigate to the screen?  Could you check if these two variables are assigned correctly?

    I don't think it make sense to set these two formulas to OnVisible property. OnVisible property means the behavior of an app when the user navigates to a screen, not a property to sets visibility. (There is no way to set screen visibility )

    So if you want to check if the current user is submitter or approver, and navigate to respective screen, append the following formula to OnStart property.

     

    If(IsSubmitter, Navigate(SubmitterScreen), IsApprover, Navigate(ApproverScreen) )

     

    If this doesn't answer your question, please let me know.

    Best regards,

    Sik

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 207 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard