Notifications
Announcements
I want to have a picture of the current logged in users manager on a screen but can't work out how to do it.
I can bring through the managers name etc but not their image
Office365Users.ManagerV2(User().Email)
Any help appreciated
@ChrisUndery, You will need to use the UserPhotoVe method, try this:
If( IsBlank(Office365Users.UserPhotoV2(User().Email)), DefaultImage, Office365Users.UserPhotoV2(User().Email) )
I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.
Visit my Blog: www.powerplatformplace.com
Hi @AhmedSalih. Unfortunately that brings up an error with the If function. It says that DefaultImage is not recognised.Looking at the code, how will that bring through the managers image as there is no mention of the manager in the code
@ChrisUndery , ahh, sorry I thought you needed logged in user profile photo.
With({Manager: Office365Users.ManagerV2(User().Email}, If( IsBlank(Office365Users.UserPhotoV2(Manager.Id), SampleImage,//If manager has no photo,show sampleImage (you can change this with any image) Office365Users.UserPhotoV2(Manager.Id) ))
Hi @AhmedSalih, that come sup with a couple of errors
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 796 Most Valuable Professional
Michael E. Gernaey 327 Super User 2025 Season 2
Power Platform 1919 268