Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
//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
sforce.connection.update([myObj]);