Tim G
Tim G

Reputation: 147

In Dynamics CRM, How can I update the CreatedOn date?

Has anyone had success updating the CreatedOn field in CRM? How can I do this? I've seen a few vague posts saying to use a pre-sync operation, but it'd be helpful to have more information than that.

Any help would be greatly appreciated. Thanks!

Upvotes: 3

Views: 5078

Answers (1)

It's little tricky.

CreatedOn is system generated field, if you want to preserve the value from some legacy system, then pass the legacy value in overriddencreatedon field. CRM knows you want to put this overriddencreatedon field value in system generated CreatedOn field instead.

This has to be done before DB transaction, and only platform can do that. You can do this with code solution: Pre-operation plugin or no-code solution using CRM import.

PRESERVE OR OVVERRIDE CREATEDON, CREATEDBY, MODIFIEDON, MODIFIEDBY FIELDS

Refer Byron Community Answer

If data is already in CRM, then you have to copy/re-import the new data, at the same time deactivating the old records. You cannot simply update this field in client side (javascript).

Upvotes: 7

Related Questions