Posts

Showing posts with the label isclone

Salesforce Fact #922 | Cloned from which record

Image
Suppose we want to track the record from which a record is cloned. We can make use of the isClone() and getCloneSourceId() functions in apex. Reference:  https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_sobject.htm#apex_System_SObject_getCloneSourceId Attached is sample code screenshot.