Audit fields in Salesforce capture the dates of creation and modification of a record. They also record the user who created and last modified the record.
Audit Field Examples:
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.
To preserve Audit Field values, you need to allow assigned users permission to insert values for the Audit Fields via API. To do this:
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”.