Salesforce Fact #922 | Cloned from which record

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.




Comments

Popular posts from this blog