Hi
I am looking at some example/payload which will help me update effort_completed field. so far I have this code. However, when I use this code. Nothing happens.
Can anyone please help me with the below code ?
OrganizationRequest organizationRequest = new OrganizationRequest("msdyn_CreateOperationSetV1");
organizationRequest["ProjectId"] = ProjectId;
organizationRequest["Description"] = ProjectId;
response = orgService.Execute(organizationRequest);
string opSetId = response["OperationSetId"].ToString();
OrganizationRequest organizationRequest1 = new OrganizationRequest("msdyn_PssUpdateV1");
var projEntity = new Entity("msdyn_project", Guid.Parse(ProjectId));
var newTask = new Entity("msdyn_projecttask", Guid.Parse(taskId));
newTask["msdyn_project"] = projEntity.ToEntityReference();
newTask["msdyn_effortcompleted"] = decimal.Parse("400");
//newTask["msdyn_start"] = DateTime.Today.AddDays(1);
organizationRequest1["Entity"] = newTask;
organizationRequest1["OperationSetId"] = opSetId;
var response1 = orgService.Execute(organizationRequest1);