Hallo,
I have a canvas application that uses the Azure Ad connector.
I use the CheckMemberGroups to check if a person is a member of a group with the following statement:
!IsEmpty((AzureAD.CheckMemberGroups(User().Email; ["group-id"]).Value))
This function is deprecated and so I want to use the CheckMemberGroupsV2 version. But the V2 function dosn't work like the V1 version. Even if the documentary is the same (https://docs.microsoft.com/en-us/connectors/azuread/#getmembergroups_response_v2)
I am not able to use the ".Value".
When I use the statement:
!IsEmpty((AzureAD.CheckMemberGroupsV2(User().Email; ["group-id"])))
the statement always evaluate to true.
So my question is: How to use the CheckMemberGroupsV2 method to find out, if a person is a member of a group?