We have CRM on-premise installed on Local Network.
I wanna change state
and statusreason
of salesorder
( Order
entity ).
I saw this link.
And I call the function in this way ( change status to Canceled
and statusreason to No Money
:
var recordGuid = Xrm.Page.data.entity.getId();
setRecordStatus ("salesorder", recordGuid ,"3", "100001");
But it gives me 400 Bad Request Error ! Could any one help me on this?