Tag Archives: salesforce apex

How to Edit Created Date in Salesforce (Step-by-Step Guide)

In Salesforce, the Created Date is a system-generated field that records when a record is initially created. By design, this field is read-only to preserve data integrity. However, in certain scenarios like data migration or testing, Salesforce allows you to set this field under controlled conditions. This guide provides a complete, step-by-step explanation of how… Read More »

Get key prefix of an object using Apex

Every record in Salesforce has an ID which is used to uniquely identify the record. Each ID value is globally unique. The first three digits represent the object type. For example, the Account object uses the 001 prefix; the Note object uses the 002 prefix, Contact uses 003, Users 005, Opportunity 006 etc. We can… Read More »