You need to sign in to do that
Don't have an account?
alok29nov
Account having same name with same parent id can't be inserted
Hi All,
I have a requirement where I need to create a trigger which ensures an account having same name with same parent id can't be inserted.
Can somebody help me with the code?
Thanks in advance!
~Alok
Hi,
You can try below code
Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved.
Hi,
Thanks for your reply!
My requirement is to throw an error only when parent id and name of a new account both is same.
Thanks
Alok
That can be accomplished with just a minor tweak to the SOQl Query in the response above (Not this isnt a buklified trigger)
Hi Ritesh,
I wanted a bulkified trigger I tried though but getting one error or other. I will see how I can accomplosih this.
Thanks
Alok