Pages

Friday, March 7, 2014

How to load Created By, Created Date, Last Modified By ID, Last Modified Date in Salesforce?

By default Created By, Created Date, Last Modified By ID, Last Modified Date will be auto-populated when user create or edit a record. But in some scenario, admin need to populate that information manually, example: for legacy data migration.

We have an issue when need to load Close Date for Case records. We can load close date manually, but the issue is, our Close Date is before today date and Salesforce not allow it.

The solution, we need ability to load Created Date before Close Date.

In order to have edit access to these fields, log a ticket to Salesforce.com Support, provide information of how long you need this to be turn on and the business justifications.
Salesforce.com Support can enable edit audit fields, which allows users to set these fields when creating the record. Since these fields are intended to be audit fields, users will only be able to set them on CREATE, not UPDATE.

Reference
How to specify the values in Created By, Created Date, Last Modified By ID, Last Modified Date