Skip to main content
CRMSalesforce CRM

Allowing Updates to Salesforce Audit Fields

By January 26, 20202 Comments

If your organization imports records on a regular basis or if you are doing a one off data migration/import, it can be helpful to have the ability to map users to Salesforce Audit fields.  These fields include owner and createby and can contain historical data that you want to keep.  For example when migrating Leads, you can set the owner to the Sales Rep’s userid so the default “My<object>” lists immediately populate.  You can also set the createdby field for imports to be the Sales Rep’s if they are not the ones doing the import.

By default, the audit fields will not be available in DataLoader.  In order to see them in the mapping list you will need to configure the audit fields to be set and then create a permission set for the users that have this ability.

Configure Audit Fields:

  1. Click on the Setup (Gear) icon and choose Setup.
  2. Type “User Interface” into the Quick Find Scroll to the bottom of the menu list and click on User Interface.

  1. Scroll down to the Setup section and check the box next to “Enable “Set Audit Fields upon Record Creation” and “Update Records with Inactive Owners” User Permissions

  1. Click the Save button.

Create/Configure a Permission Set:

  1. Click on the Setup (Gear) icon and choose Setup.
  2. Type “Permission Sets” into the Quick Find Scroll to the bottom of the menu list and click on Permission Sets.

  1. Click the New button on the top left side of the Permissions list.
  2. Give the Permission Set a Label (name) and Description. Leave the rest as is and click the Save

  1. Scroll down the page to the System section and click on System Permissions.

  1. Click the Edit button at the top of the page and scroll down until you find “Set Audit Fields upon Record Creation” or “Update Records with Inactive Owners“. Permissions are listed alphabetically.  Check the box next to it and click the Save

  1. Click the Manage Assignments button.

  1. Click the Add Assignments button and check the box next to the user(s) who will be able to set the audit fields. Click the Assign button to assign the users and then Done to save.

After the User Interface and Permission Sets are configured, you will be able to map Owner and Createdby field in Data Loader.  You may also need to before these steps to set an owner/createdby using a process or flow.

Becci MG

Author Becci MG

More posts by Becci MG

Join the discussion 2 Comments

  • Ruben PEREZ says:

    Excelent, as you said, I am know able to map. BUT I still get an error on data loader about the field level security.
    Is it actually possible to successfully completed this task?

    • Becci says:

      Ruben,

      Yes you can import audit fields but you cannot update them. You must have rights to the object you are importing as well as update the User Interface setting AND have created a permission set for the user you are doing the import under to have right to update those fields.

      Becci

Leave a Reply

5 Great Alternatives to SalesForce.com

Free Whitepaper Download

Learn more about 5 options that are better CRMs for small business

DOWNLOAD WHITEPAPER

Skip to content