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
ch ranjeethch ranjeeth 

If i enter same contact name, same phone and same mobile number twice then it need to save in notication__c object Please help me

SonamSonam (Salesforce Developers) 
You can implement this using a trigger on the Contact object, sample code on the link below:
RamuRamu (Salesforce Developers) 
To do this, you would need to write an after insert trigger witha  delete event in it and create the record with the same information in a new object. The below article might help
Balaji BondarBalaji Bondar
Hi ch rajeeth,

below is the sample trigger code :

Trigger NoticeDuplicateContact on Contact (after insert , after update){
	Map<Id, Contact> contactIdContactMap = new Map<Id, Contact>();
	for(Contact contactObj : [select Id , contact name, same phone and same mobile where Id IN : Trigger.New]){
	contactIdContactMap.put(contactObj.Id , contactObj);

	for(Contact contactObj :{
		//create notice__c object		

Important :
If this is what you were looking for then please mark it as a "SOLUTION" or You can Click on the "Like" Button if this was beneficial for you.