Trigger to check duplicate name to custom object in Salesforce | how to prevent duplicate records based on multiple fields through apex trigger in Salesforce

w3web.net -- trigger to check for duplicates

Hey guys, today in this post we are going to learn about How can we prevent duplicate name insert on custom object in Salesforce. Real time scenarios:- Write a trigger on custom object When a Object (childObjTrigger__c) is being created, if a record exists with the same EmployeeName (EmployeeName__c), the trigger should throw an error. … Read more →

Trigger to update parent records field when child record is updated | update parent field from child using apex trigger

w3web.net -- update parent field from child object

Hey guys, today in this post we are going to learn about How to update the parent record field based on child record trigger in Salesforce custom object Real time scenarios:- Write a trigger on custom object where update parent records field whenever child record is inserted or updated. Create two custom object, both are … Read more →