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
Ankit Khiwansara 10Ankit Khiwansara 10 

How to populate value in Contact.photoURL

How to populate value in Contact.photoURL  

While executing below code, getting below error 

contact c = new contact (id = '0030o00002cWalwAAC');
c.photoURL = '/servlet/servlet.FileDownload?file=0150o00000HDM4s';
update c;    

Field is not writeable: Contact.PhotoUrl.

Could you please help me to execute below error.
 
Sfdc CoupleSfdc Couple
Hi Ankit,

That field is not writeable.

Thanks,
SfdcCouple