function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
syamkishore1.3906536981992773E12syamkishore1.3906536981992773E12 

is it possible to change the created while inserting?

For example i would like to insert records today,but the created date should be yesterday's.is it  possible?
_Prasu__Prasu_
Createddate is an audit field which is not editable. So answer is NO.

Are you facing problem due to different timezone?
syamkishore1.3906536981992773E12syamkishore1.3906536981992773E12
Thank You for your reply. Actually it was my interview question.and interviewer said it is possible. Is there any way to do so?
_Prasu__Prasu_
It is possible by logging case with Salesforce for allowing setting values to the Audit fields. Mostly done for legacy data migration from different app to Salesforce.