I cant set lookup fields in any activity using API request.
I have no problem setting any of the party list fields.
I have no problem setting a lookup field in any entity that is not an Activity entity.
Here is the sample code:
var data ={
"new_name" : test1,
"new_text" : text,
"new_test@odata.bind" : "/new_tests("+ guid +")"
}
Xrm.WebApi.createRecord("new_activity_test", data).then(
function success(result) {
console.log("id: " +result.id);
},
function (error) {
console.log(error);
}
);
I tried using CRM REST Builder, but i get the same error. Tested it both on premise and online v9.