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

image and status in persona

(0) ShareShare
ReportReport
Posted on by 297

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:
I have the same question (0)
  • nick9one1 Profile Picture
    297 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

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 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard