Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 general forum

unable to update entity

(0) ShareShare
ReportReport
Posted on by 834

Hi Guys 

I am in bit of a problem, i am writing a similar codeand trying to pdatw work order entity and resource booking entity.  My work order entity is getting updated but facing problem at resource booking.

The below code is working totally fine:

workOrderEnt.Attributes["new_wfgjobid"] = jobId;
trace.Trace("Job ID captured");
service.Update(workOrderEnt);

the next one is not running, i am able to trace the things but its not getting updated.

resourceEnt.Attributes["new_costcenterlistid"] = costCenterListId;
trace.Trace(resourceEnt.Attributes["new_costcenterlistid"].ToString()); // yes till here its working.
service.Update(resourceEnt);   //  error here.
trace.Trace("checkagain");

  • Joana Pinto Profile Picture
    740 on at
    RE: unable to update entity

    Hi,

    What is the error?

    And also, can you provide full code? To see how resourceEnt is being filled and where does costCenterListId comes from, etc.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Dynamics 365 general forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans