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 / image and status in pe...
Power Apps
Unanswered

image and status in persona

(0) ShareShare
ReportReport
Posted on by 353

I'm using the persona component from Power CAT code components and have a couple of issues. 

nick9one1_0-1714742059411.png

 

Image: 
I cant get the users image to show using the code 

 

 

 

Office365Users.UserPhotoV2(First(Office365Users.SearchUser({searchTerm:"user@user.com"})).UserPrincipalName)

 

 

 

 If I use the above in an image components the image displays correctly. But for the persona image field it does not. 
the documentation says PersonaImgUrl - Url or Base64 Content of Persona Image(Profile Picture). 

User().Image does work, but displays my image


Status:
What would be the easiest way to get the users status? 
I know this can be done using the graph API (Here)
but it is quite slow, and I need multiple requests if my page has multiple personas on it. 
Is there another way?

Categories:
  • nick9one1 Profile Picture
    353 on at

    I have kind of got the image to display by converting it to base64

    Set(
     BinaryImageData,
     Substitute(
     JSON(
     Office365Users.UserPhotoV2(First(Office365Users.SearchUser({searchTerm: Gallery1_3.Selected.GM.Email})).UserPrincipalName),
     JSONFormat.IncludeBinaryData
     ),
     """",
     ""
     )
    )


    The code above uses an email address from a gallery to look up the user image in Office365Users, then converts it to base64. 

    But! it can only be used as part of an action, not directly in the image field as it gives this error. 

    nick9one1_0-1714748075194.png

    As the number of persona images is dynamic, this isn't going to work. 

    Thoughts?

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard