Hi All
hope you are all safe 🙂
I have have this formula on an image which populates from the people picker in a form.
If(Office365Users.UserPhotoMetadata(DataCardValue2.Selected.Email).HasPhoto=false,SampleImage,Office365Users.UserPhoto(DataCardValue2.Selected.Email))
Unfortunately it returns a runtime error even though it does work.
This is shown as an error message to the user
Thanks
Gary
Solved! Go to Solution.
Its ok i worked out my mistake!!
For others the solution is
If(IsBlank(DataCardValue2.Selected.Email),SampleImage,Office365Users.UserPhotoV2(DataCardValue2.Selected.Email))
awww come on you fantastic solvers it must be a simple thing I'm missing 😞
I know its easy to do if its the logged in user but I'm not after the logged in person but the person being selected in the people picker.
And i know I'm using the email instead of the userid.
Error for user logged in
Thanks in Advance 🙂
Gary
Its ok i worked out my mistake!!
For others the solution is
If(IsBlank(DataCardValue2.Selected.Email),SampleImage,Office365Users.UserPhotoV2(DataCardValue2.Selected.Email))
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
188 | |
53 | |
50 | |
34 | |
33 |
User | Count |
---|---|
268 | |
92 | |
78 | |
68 | |
67 |