You need to sign in to do that
Don't have an account?
MayankDkPant
Custom Role Validation
Hi All,
I have Parent account and child account. Contacts can only be added to parent account and contact roles to child account. Contact and contact role related list has to be shown on parent and child account. When user clicks on new button in contact role related list in the parent account, I want to restrict user from adding contact role for the parent account.
Is there any validation possible like we have for contact. Any help will be greatly appreciated. I want to do it through customization only.
Thanks in advance.
With Regards,
Mayank Pant
looks no way to achive this on just configuration.
You can write a trigger on "AccountContactRole" object that check the realted account is Parent or not.
Regards
Santosh
www.santoshkumbar.com
But as per my knowledge we can not write trigger for child object and AccountContactRole is a child object of Account. Can you suggest me how to do this.
Thanks.
With Regards,
Mayank Pant
oh then its a problem....i didnt know that salesforce doesnt provide trigger on "AccountContactRole".
It seems, there are lot of discussion is going for the same issue.
http://boards.developerforce.com/t5/Apex-Code-Development/Account-Trigger-on-Account-Contact-Role-Change/td-p/366223
Regards
Santosh