---
schema_version: "1"
id: 0c1693c5af29640a4fcb3a603b93f12f5a3cb8ef5789563671cf6fdff478d0b6
title: Preserve Salesforce Record Audit Fields
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/backup_recover_o_preserve_audit_fields.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.backup_recover_o_preserve_audit_fields.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: dd51a1cf80bab0b333abc91d093bd660742e10d689c79c2a456c189055717d64
description: 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.
products:
  - Security
  - Salesforce Platform
release: "264"
---
# 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.

1. 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.
2. In the Setup section of the page, check the checkbox Enable “Set Audit Fields Upon Record Creation”.
3. Assign the “Set Audit Fields Upon Record Creation” System Permission to a user via profile or permission set.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-platform-own_from_salesforce-264-0-0-production-enus/8ac98673-ede2-4046-a41e-2d5c846f24ff/images/icon_note.png)

Note If you have an automation that runs during record creation, it may update the audit fields after the records are created.