cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Post Prodigy
Post Prodigy

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

@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
Super User III
Super User III

@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."

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.

@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
secondImage

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

Top Solution Authors
Top Kudoed Authors
Users online (9,301)