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
Mrhammy1234Mrhammy1234 

cant build a case with an Account but no contact

I need to build a case and sometimes link to a contact (works great) and sometimes only link with an account. When i try and link to just teh account i get

 

 

ErrorMessage: Case: bad field names on insert/update call: AccountId
Fields: AccountId
StatusCode: INVALID_FIELD_FOR_INSERT_UPDATE

 I must be missing somethign simple, what is it?