Activity Forums Salesforce® Discussions How to detect cloned record in an Apex trigger?

  • Aditya

    Member
    November 27, 2020 at 5:16 pm

    Apex has two methods which help you to detect if a record is cloned or not. The following are the sObject methods used to avoid this: isClone(): It returns true if there is an entity being cloned from something. getCloneSourceId(): This method is used to return the entity ID from which an object has been cloned.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos