Hi,
I have created a screen with a gallery containing the Office 365 users.
When I set the property 'Items': Office365Users.SearchUser({searchTerm: Trim(txtSearchEscenter_ActiveDir.Text)}) -> it works
When I set the property 'Items': Office365Users.MyProfile() -> it works
But I would like to combine both with a condition, so that users will only see their profile and the admin can see all, therefor I use the contextual variable 'MyProfile'.
If(MyProfile="Yes",Office365Users.MyProfile(),Office365Users.SearchUser({searchTerm: Trim(txtSearchEscenter_ActiveDir.Text)}))
I do get the error 'Invalid argument type (Table). Expecting a record value instead.
Can someone solve my issue?
Thanks!
Kr