web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to determine if my...
Power Apps
Unanswered

How to determine if my column FotoE has a picture or not in code

(0) ShareShare
ReportReport
Posted on by 1,042

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

Categories:
I have the same question (0)
  • Verified answer
    Rajkumar_M Profile Picture
    3,741 Super User 2025 Season 2 on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard