You are here:
Preserve Salesforce Record Audit Fields
Maintain accurate historical data in Salesforce by preserving record audit fields. Keep original values, such as dates and users, of audit fields during data operations such as restore, seed, or unarchive jobs.
Audit fields in Salesforce capture the dates of the creation and modification of a record. They also record the user who created and last modified the record.
Audit field examples: CreatedByID, CreatedDate, LastModifiedbyID, LastModifiedDate
By default, Audit Fields cannot be updated via API. This means when inserting data via API, the Date Audit Fields will be populated with the time of the job, and User Audit Fields will be updated with the user running the job.
There are scenarios where our features will insert data into your environment. For example, a restore job, seed job, or an unarchive job - are all activities that would create data in an environment.
- Allow assigned users permission to insert values for the Audit Fields via API. In Settings, select User Interface from the tree menu on the left pane.
- In the Setup section of the page, check the checkbox Enable “Set Audit Fields Upon Record Creation”.
- Assign the “Set Audit Fields Upon Record Creation” System Permission to a user via profile or permission set.

