Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Dynamics 365 Community / Forums / Finance forum / Need to change createD...
Finance forum

Need to change createDateTime field of PO imported via Data management

(0) ShareShare
ReportReport
Posted on by 780

Hi All,.

I have a business requirement where need to to import multiple purchase order using Data management. But the problem is here, when we import the purchase order, value is the created date time field is always current date time. Is there any way to override the value or we can import using data management.

Thanks

Naveen

  • Suggested answer
    Khushhal Garg Profile Picture
    1,514 on at
    RE: Need to change createDateTime field of PO imported via Data management

    Data management won't allow to map system fields and won't import these fields. However, using x++ class, it is possible by overwrite method.

    table.overwriteSystemfields(true);

    table.(fieldNum(asuTMSLicensePlate,CreatedDateTime)) = CreatedDateTime passed

  • Blue Wang Profile Picture
    on at
    RE: Need to change createDateTime field of PO imported via Data management

    Hi Naveen,

    The system field, no matter what the requirements are, it is best not to change it.

    Your best bet is to add a new field yourself and sync it.

    community.dynamics.com/.../134962

  • Suggested answer
    Mea_ Profile Picture
    60,278 on at
    RE: Need to change createDateTime field of PO imported via Data management

    As stated before, it's probably a bad design idea, however, technically it should be possible. Here is an example https://community.dynamics.com/ax/b/amirsaxspace/posts/how-to-update-the-system-fields-of-the-table-like-modifieddatetime how you can do it via x++ code and obviously you can implement it on the data entity. 

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: Need to change createDateTime field of PO imported via Data management

    This field tells when the record was created in the D365FO system.

    If you want to know when the corresponding purchase order was created in some other system, you need to use some other field - perhaps even create your own.

    What is the business requirement where this information is needed?

  • Suggested answer
    Sumit Loya Profile Picture
    2,230 on at
    RE: Need to change createDateTime field of PO imported via Data management

    Hi Naveen,

    CreatedDateTime field cannot be updated as it is a system field and read-only. It should not be updated as well because this field acts as a timestamp during record audits. I don't suggest playing around with this field.

    But, if there is no other option, you can use SQL scripts to update the field. But I DO NOT RECOMMEND THIS.

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 > Finance forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans