D365 Finance & Operations and Dynamics AX Forum

Expand all | Collapse all

Data management - Entities / D365FO

  • 1.  Data management - Entities / D365FO

    SILVER CONTRIBUTOR
    Posted Sep 30, 2019 02:30 AM
    ​Hi,
    Looking for som advice on how to prevent and Entity to Update and only do Create.
    I.e. when copying into legal entity, I only want to create new records in the target company, not update existing ones.
    The Entity I am working on is Terms of payment, but it could have been any one.
    /Lars Bonfils, Alfa Laval.

    ------------------------------
    Lars Bonfils
    Alfa Laval Lund AB
    LUND
    ------------------------------
    Academy - Online Interactive Learning from Experts


  • 2.  RE: Data management - Entities / D365FO

    GOLD CONTRIBUTOR
    Posted Oct 02, 2019 11:22 PM
      |   view attached
    Hi,

    If you are looking to prevent updates of your required entity technically(i.e through code) then you can implement the code provided as an attachment. Please replace SampleEntity and SampleTable with your required entity and table names respectively.

    ------------------------------
    Regards,
    Chaitanya Golla
    Lead Architect
    ------------------------------

    Academy - Online Interactive Learning from Experts


  • 3.  RE: Data management - Entities / D365FO

    SILVER CONTRIBUTOR
    Posted Oct 03, 2019 03:11 AM
    ​Thanks Chaitanya,
    I was more looking for a setting on the entities, but coding then seems to be the only way out.
    /Lars

    ------------------------------
    Lars Bonfils
    Alfa Laval Lund AB
    LUND
    ------------------------------

    Academy - Online Interactive Learning from Experts


If you've found this thread useful, dive deeper into User Group community content by role