You need to sign in to do that
Don't have an account?
Naresh Chanda
How to add validation to prevent users from adding/editing/removing lines from quotes
How can we add logic to prevent users from adding, editing, or removing lines on Quotes in Salesforce. We are integrated with third party application for quoting needs and all the changes should occur from third party application and will be pushed from there to the SF Quote via an integration user. What is a non-invasive way to accomplish this. Thanks.
You can create a trigger in object QuoteLineItem to prevent this actions.
Like this: That's it.
I personally recommend that you have an apex class to handle the trigger context and logic, because it's consider a bad practice to write the code on the trigger.
I hope this help you.
Have a nice day.