
Announcements
Dear community,
I have the pictures from MSGraph in my own Dataverse table loaded. So i do not need the Office365 connector anymore.
This was the code i had:
If(
Len(searchQuery) > 0;
If(
'Office365-gebruikers'.UserPhotoMetadata(ThisItem.'E-mail').HasPhoto;
'Office365-gebruikers'.UserPhotoV2(ThisItem.'E-mail');
EmptyProfile
)
)
)
I quess now it has to check of ThisItem.FotoE has a value or not. And if not then show picture Emptyprofile.
Who can help me because i am bad with code.
Gr. P
Hi @PeKi72
Try this formula
If(
Len(searchQuery) > 0;
If(
!IsBlank(ThisItem.FotoE);
ThisItem.FotoE;
EmptyProfile
)
)
(Or)
If(
Len(searchQuery) > 0;
If(
ThisItem.FotoE <> "";
ThisItem.FotoE;
EmptyProfile
)
)
Thanks!
If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.