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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to show a sort of ...
Power Apps
Answered

How to show a sort of template when a user has no profile picture set.

(0) ShareShare
ReportReport
Posted on by 1,054

Dear community,

I have a Gallery connected with a Sharepoint list with all employees. On each Gallery card i have an image with this code set:

'Office365-gebruikers'.UserPhoto(ThisItem.'E-mail')

Only when a user has no profile pictures i get a blank image.

How can i set a sort of template picture when a user has no profile picture set:

PeKi72_0-1692974114998.png

Gr.P

 

Categories:
I have the same question (0)
  • BCBuizer Profile Picture
    22,563 Super User 2026 Season 1 on at

    Hi @PeKi72 ,

     

    Change the Image property to:

     

     

    Coalesce(
     'Office365-gebruikers'.UserPhoto(ThisItem.'E-mail'),
     SampleImage
    )

     

     

    SampleImage can also be replaced with a custom image you add to your app.

  • Geeks_D Profile Picture
    1,169 on at

    Add the image u want to use to replace empty your application media 

    On the Image Card, Image property use this PowerFx If Statement 
    IfError('Office365-gebruikers'.UserPhoto(ThisItem.'E-mail'),"Your Media Image ",Office365Users.UserPhoto(User().Email))

    The If error check if the first image return and error statement 
    If yes use the image value 
    Else use the Office 365 Image value 

  • CU16021406-1 Profile Picture
    1,054 on at

    Do not understand any of it. Where can is store my sample image

  • Verified answer
    Geeks_D Profile Picture
    1,169 on at

    Geeks_D_0-1692978436561.png

     

  • CU16021406-1 Profile Picture
    1,054 on at

    PeKi72_0-1692979080831.png

    It doesn't work. its probelly me doing something wrong

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard