How to get the url of the salesforce user photo in Salesforce
Solution: query the SmallPhotoUrl and FullPhotoUrl fields from user object for that particular user.
Example query: select id,name,SmallPhotoUrl,FullPhotoUrl from user where id='00590000001O70CAAS'
Here id is the user id.
SmallPhotoUurl will give the URL for a thumbnail of the user's profile photo
FullPhotoUrl will give the URL for the user's profile photo
Output:
No comments:
Post a Comment