You need to sign in to do that
Don't have an account?
Ricky 007
trigger to ensure that there is no duplicate start or end date
Hi, I am new to salesforce and i am having a hard time to create a trigger for this requirement.
I have two object AGREEMENT and CAR, they have a lookup between them where CAR is parent.
The requirement is like this, if two AGREEMENT record has same CAR record then the 2 records of AGREEMENT should have different START DATE or END DATE.
for ex. if AGREEMENT1 and AGREEMENT2 both have SUZUKI as their parent then, then START DATE or END DATE(atleast one Date) should be different from another.
Any help would be appreciated.
Thanks in advance.
I have two object AGREEMENT and CAR, they have a lookup between them where CAR is parent.
The requirement is like this, if two AGREEMENT record has same CAR record then the 2 records of AGREEMENT should have different START DATE or END DATE.
for ex. if AGREEMENT1 and AGREEMENT2 both have SUZUKI as their parent then, then START DATE or END DATE(atleast one Date) should be different from another.
Any help would be appreciated.
Thanks in advance.
Please check below sample code :
Hope this helps you!
If my answer helps resolve your query, please mark it as the 'Best Answer' & upvote it to benefit others.
Thanks
Varaprasad
@For Salesforce Project Support: varaprasad4sfdc@gmail.com
Salesforce latest interview questions :
https://www.youtube.com/channel/UCOcam_Hb4KjeBdYJlJWV_ZA?sub_confirmation=1