You need to sign in to do that
Don't have an account?
Valerie G
Locking Opportunity Products
Hi there!
I am trying to find out if it is possible to restrict modifications / accidental deletions of Opportunity Products after a specific custom field is updated to "True". Basically, I want to ensure that the Sales & Account Management teams can no longer modifiy a product once a specific field is updated in an Opportunity Product. All updates need to be limited to the specific roles/Profiles (such as Accounting team, System Administrators).
Is this possible?
In my opinion, it is workable. You need to create a trigger on opportunity product and that will restrict the users to accidently delete or modify the record when certain criteria is met.
Hope this helps.
I tried the triggers, but could not create a new trigger or find a trigger to modify. I found the following in the Help & Training section:
Sometimes, a customer might ask why they can not see the NEW button in Apex Code trigger section in Live Production.
To create an Apex class in live Production instance is not supported.
Only Developer Edition, Sandbox, and Trial organizations have the ability to create, edit, and delete Apex classes and triggers directly in the Salesforce CRM user interface.
Unlimited Edition and Enterprise Edition production organizations can execute Apex and can view Apex in the user interface, but modifying Apex in the user interface is not allowed.
The Apex classes and triggers should first be written in a Developer Edition, Sandbox, or Trial organization along with the appropriate test methods with at least 75% of test coverage.
To activate the Trigger Function in live production environment, you will need to use either the Salesforce ANT Tool or Apex Toolkit for Eclipse to deploy.
The New button also does not appear in Apex Class, not just triggers.
We are working in the Enterprise Edition.
any luck on this, I'm just looking to remove the delete link (already removed the delete button), but your idea sounds interesting also.
Oh yes! Sorry about that. I did figure this out and have a solution. Thanks for the follow up.
What solution did you come up with? I would love to know this, as im trying to block, deleting of products.