Historical data import into Salesforce isn't just about transferring information; it's about maintaining accuracy and integrity in crucial fields. Before initiating this process, it's vital to ensure your Salesforce setup aligns with the data importing requirements. Whether it’s for compliance, audit, or data accuracy reasons, in this guide we will run you through the steps to enable Create Audit Fields in Salesforce and migrate historical data.
Before beginning your historical import you will first need to ensure that you have enabled the ‘Create Audit Fields’ setting.
Navigate to:
Salesforce Classic: Go to Setup > Manage Users > Permission Sets
Lightning Experience: Click the Gear icon > Setup > Users > Permission Sets
Go to:
Salesforce Classic: Setup > Manage Users > Permission Sets
Lightning Experience: Click the Gear icon > Setup > Users > Permission Sets
Remember to always have a backup and rollback strategy in place. Using a tool like Dataimporter.io ensures you that will be able to one-click rollback the records which you are importing.
Ensure that your data is formatted correctly for these fields. 'Created By' often corresponds to a user's ID, while 'Created Date' and 'Last Modified Date' require a specific date-time format aligned with Salesforce standards.
When mapping your fields, make sure you remember to map the Audit fields you wish to populate, and remember that these values can only be set on a record Creation, not Update. Where you are referencing CreatedBy or LastModifiedBy and you don’t have a Salesforce User Id value available, you can make use of Dataimporter’s lookup relationships to populate those values for you automatically.
To prevent dirty data from entering your Salesforce Org, use a subset or sample of Data to test your mapping and formatting. Validate the results of this subset before processing the remaining data. Check that the audit fields were set correctly, and any lookups you used found the correct user records.
By paying attention to these specific details while importing audit fields, you can ensure the accurate representation of historical data within Salesforce, enabling better tracking and analysis of records. Want to use a tool which has Rollback, Formatting, and Sampling built into it? Give Dataimporter a try and see why it is the Data Loading tool of choice for Salesforce Professionals.