Hi there,
I am declaring the following variable OnStart = Set(CurrentUser, User().Email); Set(CurrentUserName, User());
And I have an user picture with this formula:
Image = If( !IsBlank(CurrentUser),
If(Office365Users.UserPhotoMetadata(CurrentUser).HasPhoto = true,
Office365Users.UserPhotoV2(CurrentUser),
UserIcon
)
)
And also a lebel for the user name:
Text = Office365Users.UserProfileV2(CurrentUser).displayName
Running the app in my browser I have no problems.
But in in mobile device "IOS" I get this error:
Office365Users.UserProfileV2 failed: the method 'UserProfileV2' has an invalid value for parameter 'id'
Could somebody please provide help ?
Thanks in advance
You may have already resolved this, but just in case -- I found this here: https://thepoweraddict.com/office365users-connector-get-rid-of-this-warning/ . My situation is that I have old users that no longer exist in AD, but I don't want to lose those records. So I use a boolean to determine if they exist first. AcctEnabled is a boolean: IsEmpty(Office365Users.SearchUserV2({searchTerm:emailtext.Text}).value.Id). Then for the image: If(Not(AcctEnabled),If(!IsBlank(Office365Users.UserPhotoV2(Label1.Text)),Office365Users.UserPhotoV2(Label1.Text)),'person icon')
User | Count |
---|---|
251 | |
102 | |
94 | |
48 | |
37 |