Building a dynamic org chart and have 2 Galleries
1st Gallery for current user name and info
2nd Gallery is Direct Reports of user in Gallery 1
OnStart is Set(varCurrentUser, User().Email)
The Items property of Gallery 1 is set to: Office365Users.UserProfileV2(varCurrentUser)
Items of Gallery 2 is set to: Office365Users.DirectReportsV2(varCurrentUser).value
I get these error below when viewing the App on Browser
Office365Users.UserProfileV2 failed: The method 'UserProfileV2' has an invalid value for parameter 'id'
Office365Users.DirectReportsV2 failed: The method 'DirectReportsV2' has an invalid value for parameter 'id'
I was getting same error for userphto but i fixed that using
If(!IsBlank(ThisItem.id),
Office365Users.UserPhotoV2(varCurrentUser), SampleImage)
Tried same solution for Userprofile & DirectReports but no good
How. can I fix this?