I have a sharepoint list with many AD account entries. But I also have entries from people without an AD account. I have the AD photo displayed in a column. For people who do not have an AD account, an error message appears:
"Office365Users.UserPhotoV2 failed: The function 'UserPhotoV2' has an invalid value for parameter 'id' - a blank value was passed to it where not expected. Please make sure that a valid argument is passed to the function. "
I tried to avoid the error with the query:
If(IsBlank(Office365Users.UserPhotoV2(ThisItem.AD.Email)),DisplayMode.Disabled,Office365Users.UserPhotoV2(ThisItem.AD.Email))
Unfortunately the query doesn't work. Which query can I use to avoid this error?

Report
All responses (
Answers (