Project Entity Extension with HcmWorker Data

  • Project Entity Extension with HcmWorker Data

    Posted by DSC Communities on March 29, 2021 at 3:02 pm
    • Ben Morgan

      Member

      March 29, 2021 at 3:02 PM

      Hi All,

      D365 comes with a standard projects data entity thatĀ  can be used for import/export of basic project data.Ā  Among the fields within this entity are several tied to workers – project manager, project accountant, etc.Ā  The entity surfaces the personnel number by joining the HcmWorker recid to the applicable worker field on the projects table.Ā  We added a new worker related field to the projects table via an extension (named ‘cost controller’), and did the same for the projects entity. The custom entity field is modeled exactly on the delivered field.Ā  For example, this is the delivered field:Ā 

      And this is the custom field:Ā 


      The only differences are which projtable field joins to hcmworker to create the appropriate data source (HcmWorker2 v. HcmWorker4).Ā  The datasources are likewise identical other than the relations to the master table (projtable).Ā  This setup works fine to export the field contents, and it also allows updating the field when no value currently exists – i.e. filling in a blank field.Ā  The only thing it doesn’t allow is updating a field that already contains a value.Ā  It handles this scenario by generating messages that seem to indicate success while actually ignoring the update entirely – i.e. 1) update the field by changing the personnel number (to another valid number), 2) publish, 3) Excel add-in / DMF indicate one record updated with no errors, 4) old value remains.

      I have scoured the field and datasource settings in Visual Studio and can’t see any obvious difference that would account for the difference in behavior between the fields.Ā  Microsoft has so far been unable to figure out why there is a difference.Ā  Are there any developers that have had experience customizing an entity like this that know of any tricks or gotchas related to this sort of customization?

      ——————————
      Ben Morgan
      M3 Engineering & Technology Corp
      ——————————

    DSC Communities replied 4 years, 5 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Project Entity Extension with HcmWorker Data’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!