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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 797

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 589 Super User 2026 Season 1

#3
Subra Profile Picture

Subra 534

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans