You need to sign in to do that
Don't have an account?
Teja K
Need help with below trigger scenario
Hello All,
Need some help with the below scenario.
I have a 2 custom objects. Will be loading the data on parent object and based on the email field only unique email Id records should be created on the child object.
Example data:
below is the data to load on the parent object
Name Email
A A@gmail.com
A A@gmail.com
B B@gmail.com
Expected Output on child object:
Name Email
A A@gmail.com
B B@gmail.com
Need some help with the below scenario.
I have a 2 custom objects. Will be loading the data on parent object and based on the email field only unique email Id records should be created on the child object.
Example data:
below is the data to load on the parent object
Name Email
A A@gmail.com
A A@gmail.com
B B@gmail.com
Expected Output on child object:
Name Email
A A@gmail.com
B B@gmail.com
Please find the below code. Please note as per you requirement this code will work when you insert the parent object
Trigger
Test Class
I hope this will help.
Please do not forget to mark it a best answer