The Salesforce ISCLONE Function is used to check whether a record already exists in the Salesforce org.
ISCLONE Function in Salesforce is one of the commonly used functions in the Salesforce validation rule, but there is no online tutorial that covers the concept of the ISCLONE function and how to use it in the validation rule.
In this Salesforce tutorial, I will guide you as a Salesforce Administrator on what the ISCLONE function is, its syntax, considerations, etc. I will also explain step-by-step how to use the ISCLONE function in Salesforce Lightning and Salesforce Classic.
ISCLONE Function in Salesforce
What do we mean by the ISCLONE function in Salesforce?
The ISCLONE function in Salesforce is one of the Salesforce logical functions used to guarantee data integrity and data uniqueness.
It is a function that is used to determine whether a record is a clone of another record or not. It evaluates the result to TRUE if the record is a clone of another record, but if the same record already exists, the function will return FALSE.
Where in Salesforce can we use the ISCLONE function?
The Salesforce validation rules include the ISCLONE function. This function functionality is not available in the formula fields.
Additionally, we can use the ISCLONE function in the Salesforce process builder, record triggers, workflow rules, etc.
In Salesforce, how can the ISCLONE function be written?
The following is the Salesforce syntax for the ISCLONE function.
ISCLONE()
How many parameters does the ISCLONE function receive in Salesforce?
It is important to remember that the ISCLONE function accepts no parameters. This function is also cannot be used with fields.
Additionally, if we pass any field as a parameter to the function, the function will return an error such as “Incorrect number of parameters for function ‘ISCLONE().’ Expected 0, received 1”.
Is there any consideration that we must take care of while working with the ISCLONE function in Salesforce?
Yes, if we want to get the reverse result of the ISCLONE function, we need to use the NOT function with the function. The use of the NOT function reverses the return values of TRUE and FALSE.
How to use the ISCLONE Function in Validation Rule in Salesforce Lightning
Let’s try to understand with the example that you want to create a lead with the same lead record in Salesforce. The following are the steps to use the ISCLONE function in the validation rule in Salesforce Lightning.
Step-1: Access your Salesforce account in the Lightning Interface using your credentials. If you are not on the “Home Setup” page, move your cursor over the “Gear” icon on the right side of the screen, click it, and select “Setup” dropdown menu.
Step-2: Locate and select the “Object Manager” option from the navigation bar. Select the object for which you want to create the validation rule.
For example, as per the scenario, you need to find and select the “Lead” object.

Step-3: Under the selected object on the left sidebar, search for and click on “Validation Rules”.
After that, click on the “New” button given at the top right side of the page to create the rule for the lead object.
