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
mromanimromani 

Need help with an upsert call asap!!

  

I keep getting an upsert error, and i would really appreciate anyone who can help....

 

Basically im trying to upsert (update or insert) a contact. Now, firstly i created an Account, which is needed since every contact i have must belong to a Account, just like every Employee belongs to a Company.

 

The problem is that when i attempt this with the following code :

 

sforce.UpsertResult[] upResult3 = binding.upsert("ID__c", objList3);           (<-----ID__c is my externalID, thats not the issue)

 

i get the following error:

 

"Unable to create/update fields: Name. Please check the security settings of this field and verify that it is read/write for your profile."

 

"Name" is the standard field that exists in Contacts which is a lookup to Accounts, it links the 2 together. Now the thing is im making these calls as a System Admin, so i cant understand why its not allowing me to do so.... why is it telling me i dont have the right security settings?? what can i do??

SuperfellSuperfell
Name is a read-only compound field. you need to set the firstName/lastName fields instead.