cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Display user image on app

Hello,

 

I added Office365 Users as a data source for my app.

Then added a custom image with the following formula to the "Image" property:

 

User().Image

However, the image is not displayed:

 

Anotação 2020-05-06 152200.jpg 

 

I do have an image associated with my O365 account.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User III
Super User III

Re: Display user image on app

@WebPortal 

You will need to add the Office365Users connector to the app before typing the formula.  This will remove the error.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Re: Display user image on app

@WebPortal 

Add the Office365Users connector then put this code in the Image property of the image control

Office365Users.UserPhotoV2("yourname@company.com")

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper V
Helper V

Re: Display user image on app

Hi @mdevaney 

 

I now see an empty image and an error, like:

 

"Invocation of an unknown or unsupported function".

 

I want the image of the current user, not necessarily mine.

Highlighted
Super User III
Super User III

Re: Display user image on app

@WebPortal 

You will need to add the Office365Users connector to the app before typing the formula.  This will remove the error.

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,436)