Migrate audit fields during a data deployment
When deploying data records, it would be helpful if audit fields values could be migrated
Released in October 2021 (apologies for the slow update of this post). Users need to enable the "create Audit fields" permission on their org before they do a deployment. Instructions here: https://help.salesforce.com/s/articleView?id=000334139&type=1
-
Damian Lloyd commented
This feature is really critical when performing data restores using the Gearset backup tool. Currently, when restoring deleted records originally created many months ago, the Created Date on the restored records will be set to the date of the restore. This is problematic where users build reports analysing data by Created Date e.g. Lead Reports. This can result in a skew of the data.
So, if we have the "Set Audit Fields upon Record Creation" permission enabled in the Org, and the user performing the backup has this permission, then inserting the Created Date and Last Modified Date should be possible.
Reference https://help.salesforce.com/s/articleView?id=000334139&type=1
-
Eric Kintzer commented
would be super useful doing org migrations as one wants to preserve createdBy and createdDate values in the target org
-
Jay Kilian commented
To clarify - we need to be able to set CreatedDate and LastModifiedDate values in the target org to match the source org. You can do this in SFDC via the Data Loader if you have a special permission granted by SFDC Support: https://help.salesforce.com/articleView?id=000328426&type=1&mode=1