Hi,
I am creating a record of Appointment activity entity using web API. where I am setting the value of Organizer field. However, the record is creating without setting the organizer field. Below is my code.
var activityParties = [];
var party1 = {};
party1["partyid_systemuser@odata.bind"] = "/systemusers(" + Xrm.Page.Context.getUserId().replace("{", "").replace("}", "") + ")";
party1["participationtypemask"] = 7; //for organizer
activityParties.push(party1);
parameters["appointment_activity_parties"] = activityParties;
The above object(parameter") passing to create records using web API.
I tried the same code for my custom activity entity and it is setting the value.
Please help me to set the organizer field using web api for acivity entity.
Thanks,