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
RupaliJRupaliJ 

How to update Chatter Profile Photo using Apex

Hi,

 

I have created custom visual force page for Chatter User Profile. I want to update chatter profile photo using apex. Chatter Profile photo is displayed using smallphotourl and fullphotourl fields of User. But, these 2 fields are not writeable.

 

Can anyone please help me out to do this?

 

Thanks,

Rupali

colemabcolemab

Did you query the fields and notice they all have the same URL?

 

I bet that has something to do with why you can't change it.

colemabcolemab

Also here is an idea you may want to vote up on the idea exchange to allow profile picture update from apex code.

RupaliJRupaliJ

Hi,

 

Is there any workaround to do this?

 

Thanks,

Rupali.

 

colemabcolemab

None that I am aware of.

Sure@DreamSure@Dream
Hi guys,


Are you able to solve this ..!!
I am replicating a Chatter Group page in visualforce. So there i need to display the user images.

I want to provide them a way to upload profile pic using visualforce & apex.
Dont know how to proceed.

Could you please help me with that?