Hi All, weather good where you are?
So I have an issues that's annoying me a little. I am going to simplify this down to the basics I what I am trying to do.
I have an App. It has a connection into Azure AD.
OnStart of the App sets 3 variables. varRequest, varApprove, varPurchase with the follow syntax.
Set(varRequst,!IsBlank(AzureAD.CheckMemberGroupsV2(User().Email,["RequestGroupID"])));
Set(varPurchase,!IsBlank(AzureAD.CheckMemberGroupsV2(User().Email,["PurchaseGroupID"])));
Set(varApprove,!IsBlank(AzureAD.CheckMemberGroupsV2(User().Email,["ApproveGroupID"])))
Then I have 3 buttons.
B1, Visible, True
B2, Visible, varPurcahse
B3, Visible, varApprove
And finally I have 3 text boxes.
T1, Text, varRequest
T2, Text, varPurchase
T3, Text, varApprove
Each text box shows the value of each variable and each button shows based on the true false value of those variables.
So T2 show false, So B2 is not visible. T3 shows true, so B3 is visible.
This seems to work fine in the App editor. But when I save and publish the app, it loads all buttons and shows all as true when I run it from PowerApps. The testing user is in Request and Approve but not in Purchase groups.
What am I doing wrong?