You need to sign in to do that
Don't have an account?
Srinu
User Object - FullPhotoUrl
Hi,
I am trying to find the photos of list of users. I am using below SOQL to get the PhotoUrl of USER:
SELECT Id,Name, FullPhotoUrl FROM User WHERE Id='123456789'
With that i can get the current page URL.
Also, if someone uploads a second profile photo, I’m not sure where to find the original.
Any suggestions would be appreciated.
Also if you check the documentation:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_user.htm
It says that the FullPhotoUrl stores the recent photo. In case you have already existing Url of an older photo, there is no guarantee that it will return the old photo.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.
All Answers
You can get the FullPhotoUrl only if chatter is enabled.
Further FullPhotoUrl stores only the recent photo.
Regards,
Satish Kumar
Yes, with 'FullPhotoUrl' can retrieve recent/present photo. Any idea hot can we retrieve old photo as well?
Also if you check the documentation:
http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_objects_user.htm
It says that the FullPhotoUrl stores the recent photo. In case you have already existing Url of an older photo, there is no guarantee that it will return the old photo.
Hope this helps.
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.