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

Salesforce Integration Tutorial | Integrate Salesforce with Apps

Video in

This "𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞 𝐈𝐧𝐭𝐞𝐠𝐫𝐚𝐭𝐢𝐨𝐧 𝐓𝐮𝐭𝐨𝐫𝐢𝐚𝐥" video by Edureka will help you understand what is Salesforce integration in detail. It will also address the various Salesforce integration…