Salesforce Data Loading Data Migration
March 26, 2024
Before you kick off your next data migration into Salesforce, there are 5 settings I always configure that ensure a smooth data migration experience. This post will cover Audit Fields – stay tuned for next week’s setting, “Update Records Owned by Inactive Users.”
The easiest way to explain this topic is with a Q&A style post. I’ll pose the questions I’m most frequently asked followed by an answer that has WORDS and not just a link to another article (you’re welcome.)
Let’s kick this off with the most obvious question…
A: Audit fields are read-only date/time and user lookup fields in Salesforce that capture a record’s original creation date/time and the user who created it, as well as a record’s most recent modification date/time and the user responsible for the modification.
A: There are 4 audit fields located in the System Information section of a record’s page layout, though they only look like 2 fields on the layout.
For each object that tracks audit fields (more on that later), you’ll find the following 4 fields:
A: We have the ability to migrate historical information into Salesforce and retain the original “created by” information, so as a best practice we enable the settings required to access these audit fields and include them in the mapping files.
A: That’s a no, friend. Audit fields are only available on insert.
Not upsert.
Not update.
So if you forget, you have to delete the records and re-do the insert.
A: No. Salesforce audit fields are not editable in the user interface – they are only accessible via the API. (And only if you have permissions, more on that shortly.)
A: Most of them, including Accounts, Contacts, Leads, Opportunities, Cases, Custom Objects, etc. Here’s a Salesforce Help article with the full list.
A: Most notably, Campaigns. (Don’t ask me why – I don’t have the answer.)
A: Yes, you can access those as well!
Q: How do I enable access to the audit fields?
A: I thought you’d never ask.
Now you can access the CreatedByID, CreatedDate, LastModifiedbyID and LastModifiedDate in the Data Loader!
A: I recommend not bothering with the Last Modified information, because the minute you update the records, whether it’s with automation or subsequent file loads, you’ll overwrite it. Most clients agree it’s not worth the time.
I’ll send you a new Salesforce tutorial every week, because that’s just the kind of gal I am.