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.

Report
All responses (
Answers (