function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
rohitmaratherohitmarathe 

Getting the latest User Profile image thumbnail using API

Hi,

Using unsupported url like this <SalesForce.com instance path>/userphoto?u={!userid}&v=1&s=T we can get the profile picture of the user. But this is not giving the latest picture always, because parameter v=1 that controls the version of the picture and there is no way by which we can get what is the current version number.

The code recipe given here http://wiki.developerforce.com/index.php/Chatter_Code_Recipes says that soon there will be way available to get the latest user profile picture. 

Is there any update on this. If use object have a field to store the latest profile picture version, it will be very easy for developers to query it.

Thanks

 

cloudcodercloudcoder

I can not speak for the engineering team, but the best advice right now is to use the strategy in the recipes article and encapsulate the code for the profile image in a component, so when things do change, you can take advantage of it.

 

Further, make sure you vote on this idea. Product Management look at these regularly. 

rohitmaratherohitmarathe

Thnaks cloudcoder for the valuable feedback. I will vote for the idea.