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

Salesforce Fact #218 | Blank picklist value is actually NULL

Salesforce Fact #929 | Nth highest in screen flow

Salesforce Fact #947 | Resolving dashboard logged-in user limit error