Search This Blog

Friday, October 23, 2015

Change status using javascript xrmservicetoolkit in CRM 2015

function ChangeStatusReason_toReject() {
XrmServiceToolkit.Soap.SetState("entityname", Xrm.Page.data.entity.getId(), statecode, statuscode,false);
Xrm.Page.data.refresh(true).then(null, null);//for refreshing form
}

2 comments: