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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Change createdon and createdby when creating Post records?

(0) ShareShare
ReportReport
Posted on by

Hi everyone 

I'm working on migration data and I have a problem. I need to migrate post data and need to keep the createdon and createdby the same as old environment. Is anyone know how to do that?

Thanks,

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    PranavShroti Profile Picture
    4,510 on at

    Hi You can use tools like SCRIBE for data migration they support this kind of functionality. I have used it in past and its fast & reliable.

    If found useful, please mark the answer as verified

    Regards,

    Pranav

  • Suggested answer
    gdas Profile Picture
    50,091 Moderator on at

    Hi,

    I would suggest create separate field to migrate created on date as Created On field is  system field which is  updating internally. To migrate Created By field you should execute the API  request impersonating with the created by user.

  • Suggested answer
    Vighnesh Profile Picture
    1,942 on at

    Hi trongtran,

    There is no way you can modify these fields as they are controlled by system. You have to build a custom logic to achieve this.

    Please refer to this link.

  • Suggested answer
    Ben Thompson Profile Picture
    6,350 on at

    You can override the createdby and createdon dates of a record via the SDK provided the user account running the import  has been given the explicit permission to do so. You can't however do this via bulk import as that follows a very different process..

    Counter intuitively the field you need to set the date is the overridencreatedon field which results in the createdon field showing the date you set and the overridencreatedon date showing the date you imported the record

    var ent= new Entity("account");
    ent["overriddencreatedon"] = new DateTime(2012, 2, 22);
    ent["name"] = "overriddencreatedon";
    service.Create(ent);


    Both Scribe and kingswaysoft should be able to do the appropriate mapping for this to work.

    Createdby works the same way (you set the overridencreatedby field to the entityreference (within the new migrated instance) of the user account who created the record.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans