web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Update Task Entity

(0) ShareShare
ReportReport
Posted on by 5

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);

I have the same question (0)
  • Suggested answer
    apa Profile Picture
    8,284 Moderator on at

    I can't see a line where you'd execute the OperationSet with msdyn_ExecuteOperationSetV1. Could that be it?

  • GLMSDev Profile Picture
    10 on at

    Thanks this actually worked

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans