function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Basha sk 16Basha sk 16 

How to restrict non-admin user to delete the opportunity team members it allows for delete the active team members and disallow for inactive tem members?

Hi All,

    How to restrict non-admin user to delete the opportunity team members it allows for delete the active team members and disallow for inactive team members?

Thanks In Advance,
Basha
 
Manmohan SinghManmohan Singh
Hi Basha,

Write a before delete OpportunityTeamMember trigger to handle this, keep the profile names in the custom setting to enable disable the acces for users profiles for future maintenance.

hope this will help

thanks, Manmohan