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
Arpit Mantri 13Arpit Mantri 13 

Salesforce is not returning back the latest updated user profile photo using connectAPI call from apex

We are executing the below code:
photo = ConnectApi.UserProfiles.setPhoto(communityId, userId,  new ConnectApi.BinaryInput(body, contentType,  fileName) );

photo.largePhotoUrl does not returns the photo url which we have updated in the above call instead it returns a previously saved photo url.We are facing this issue after winter, 2019 update.