[SalesForce] Limit who can add/edit specific contact roles

I have a feeling I know the answer is No, but wanted to check if anyone had any luck or quick workaround to my issue.

We use Account Contact Roles, but we want to allow specific profiles to add/edit certain contact roles.

For example, say we have 2 contact roles, 'Support Contact', and 'Purchasing Contact'. Now say we want only users with 'Support user' profile to be able to add/edit the support contact contact role, and only users with 'Sales rep' profile to be able to add/edit 'Purchasing Contact' contact role. Is this possible with the standard contact roles. Normally I could control this in a trigger, but as you can;t create triggers on contact roles I am stuck.

My Workaround

My gut is telling me we will need to create a custom object to emulate the contact role object and then we can use field permissions/triggers, whatever we want to do this, and it should be fairly straightforward.

My Question

Just want to make sure I am not overlooking anything prior to going down the road of custom development. Does someone have a solution other then the custom object that they have used?

Best Answer

Your gut feeling is correct. You can't restrict Contact Roles by the use of triggers. Keep in mind that a custom object will use 2kb of data storage per record, instead of the free cost that contact roles offer. Other than that drawback, this solution would work as you intend. Contact roles have no "additional" functionality that you'd have to consider.

Related Topic