i'm trying to create a javascript button to update some values on a case record and then push it through the assignment rules. the following code updates the fields i want but doesn't push it through the rules, what am i missing??
{!REQUIRESCRIPT("/soap/ajax/31.0/connection.js")}
var caseObj = new sforce.SObject("Case");
caseObj.RecordTypeId = '01280000000Q9uk';
caseObj.Reason = 'Transfer from Billing';
var result = sforce.connection.update([caseObj]);
assignObj = new sforce.SObject("AssignmentRuleHeader");
assignObj.assignmentRuleId = '01Q80000000Gcdr';
caseObj.Id = '{!Case.Id}';
var result = sforce.connection.update([caseObj]);
if (result[0].success=='false') {
alert(result[0].errors.message);
} else {
location.reload();
}