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
adamrussadamruss 

how do i edit a custom field in a contact

Hi,

 

Our "Contact" object contains a custom field - 'uuid' (uuid__c).

I am able to query  and get the objecy by that field (uuid__c="somthing"). But after I have the contact object, how do I change the field?

 

c.uuid__c = "new string"l give me an error, and c.setUuid__c() does not exists.

 

can anyone help?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
bmabma

Forgot to ask, did you update your wdsl after you created the custom field?

All Answers

bmabma

Have you try using this c.setuuid__c("new string")? I believe you have to use setter method to assign value to a field.

adamrussadamruss

Hi,

 

the method setuuid__c(String) doesn't exists

bmabma

Forgot to ask, did you update your wdsl after you created the custom field?

This was selected as the best answer
adamrussadamruss

no, is that it? :)