I'm using the Office 365 user connector and I want a button to be disabled if the user doesn't have any direct reports.
I've tried these variations:
| If( IsEmpty(Office365Users.DirectReports(Office365Users.UserProfileV2(User().Email).userPrincipalName)), DisplayMode.Disabled, DisplayMode.Edit ) |
| If(CountRows(Office365Users.DirectReports(User().Email)) = 0, DisplayMode.Disabled, DisplayMode.Edit) |
Neither of them work unless I do the opposite function (!IsEmpty or <> 0). Any Ideas?

Report
All responses (
Answers (