function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Balasubramani DhanapalBalasubramani Dhanapal 

Production Duplication

Hi all,
        I am beginner  in salesforce.I have struggle in validation rules using trigger.Please make it so that we cannot create a Product with the same Product Code (or)  SAGE Code(custom field) as an existing product. This is similar to the way we cannot create two products with the same name.

Thanks in advance
Best Answer chosen by Balasubramani Dhanapal
PratikPratik (Salesforce Developers) 
Hi Balasubramani,

You can make the field as Unique  in the field properties.

You can refer to:
http://starrforce.com/2012/05/preventing-salesforce-duplicates/

Thanks,
Pratik

All Answers

PratikPratik (Salesforce Developers) 
Hi Balasubramani,

You can make the field as Unique  in the field properties.

You can refer to:
http://starrforce.com/2012/05/preventing-salesforce-duplicates/

Thanks,
Pratik
This was selected as the best answer
Balasubramani DhanapalBalasubramani Dhanapal
Dear Pratik,
                     Thanks

Regards
Bala
PratikPratik (Salesforce Developers) 
Glad it helped! This is the standard Saleaforce functionality for field.

Thanks,
Pratik