You need to sign in to do that
Don't have an account?
Bruce Hanson
delete opportunity product line items
As a newbie/begginner developer, I've successfully written some simple apex triggers, but I'm not sure where to start with this one. In short, I want the ability to set a checkbox on the opportunity record, which would trigger the deletion of all opportunity product line items. In short, I've never had the need to do a mass delete so I'm not sure where to get started. Any assistance is greatly appreciated.
When you update the checkbox on Opportunity, there can be OLIs. So update context is what we need here.
Let's say checkbox called Delete_OLI__c is present.