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
AnuAnu 

Not able to insert a Case through API

I am trying to insert Cases using sForce API(Using C#).  The insert is failing because I am setting the ClosedDate.

Following is the actual error I am getting:

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

The profile I am using have permissions to everything and has "Edit Read only fields" option checked.  How do I make this field writable.

Thanks in advance.

Anu

benjasikbenjasik
Set the status to closed. That sets the closeDate to the current time.