Skip to main content

2 docs tagged with "cloning"

View all tags

System Audit Field Integrity in SObject Cloning

When cloning SObjects in Apex, partially clearing system audit fields (CreatedDate, LastModifiedDate) causes FIELD_INTEGRITY_EXCEPTION errors. All four audit fields must be cleared together.