Hello,
I'm trying to get a picture from O365 profile.
Case: I have a gallery connected to the SQL server. And I'm trying to show a picture of the same person using O365 profile.
is there any way or suggestion?
Best,
Omi
Solved! Go to Solution.
What is the error you are seeing? Is the value in ThisItem.email1 a valid email? If there are ANY invalid email addresses in your Gallery, you will get an error on the formula. Usually though, any row that IS valid, will have a photo.
You will need to utilize the Office 365 Users connector and the GetUserPhotoV2 action to get this.
Supply the user email address in the parameter and, if all is valid, you will get the image. You can apply this to the Image property of an Image control.
I hope this is helpful for you.
Hi @RandyHayes ,
I have the below formula for image property.
Hello,
I'm trying to get a picture from O365 profile.
Office365Users.UserPhotoV2(ThisItem.email1)
but gives me an error.
Best,
Omi
What is the error you are seeing? Is the value in ThisItem.email1 a valid email? If there are ANY invalid email addresses in your Gallery, you will get an error on the formula. Usually though, any row that IS valid, will have a photo.
If the emails are valid, you will get photos.
Try to hardcode an email address into the formula:
Office365Users.UserPhotoV2("youremailaddress")
Hi,
I have used other method that works for me.
I use the formula: "https://outlook.office.com/owa/service.svc/s/GetPersonaPhoto?email=" & ThisItem.Email & "&size=HR96x96"
Try it and see if works for you as well.
Best!
Daniel
User | Count |
---|---|
247 | |
105 | |
82 | |
50 | |
43 |