How To Restrict The Type Of Opportunity User Can Create Based On Role?
I have the requirement that if logged user is not admin ('ORA_ZBS_SALES_ADMINISTRATOR_JOB') and Type of Opportunity (Type_c) is equal to 'Renewal', then should not be able to create/enter the opportunity. If Type of Opportunity is other than 'Renewal', should have privileges to create/enter the opportunity regardles of the role assigned.
Type of Opportunties:
- New
- Add-New
- Add-Existing
- Renewal
How to write the validation trigger for this?