+ Start a Discussion

Change Field Sample Request

Can anyone post a generic sample on how to change a single field in a Case object?
For example, change the 'Status' field from one value to another?  Thank you
Ron HessRon Hess
would look something like this

//create an sobject
var myObj = new sforce.SObject("Case");

//set the fields, note this is a merge field giving the ID of the current record
myObj.Id = "{!Case.Id}";
myObj.Status = "new status"';

//call api