You need to sign in to do that
Don't have an account?
line item trigger not firing with opportunity delete
I have a custom object "Inventory Movement". On Opportunity Line Items, I have a custom lookup field that links the Line Item record to an "Inventory Movement" record. If the Line Item is deleted, the Inventory Movement record needs to be deleted.
I have successfully implemented an "after delete" Trigger on Opportunity Line Items. When I delete an Opportunity Line Item, the Trigger deletes the Inventory Movement record.
I'm not clear why my trigger doesn't work when I delete an Opportunity. When an Opportunity is deleted, its line items are automatically deleted by Salesforce system functionality. How come this auto deletion of line items doesn't fire the Trigger?
I have successfully implemented an "after delete" Trigger on Opportunity Line Items. When I delete an Opportunity Line Item, the Trigger deletes the Inventory Movement record.
I'm not clear why my trigger doesn't work when I delete an Opportunity. When an Opportunity is deleted, its line items are automatically deleted by Salesforce system functionality. How come this auto deletion of line items doesn't fire the Trigger?
Glyn Anderson
Sr Developer | System Analyst | ClosedWon | closedwon.com
Certified Developer | Certified Advanced Administrator
Twitter: @GlynAtClosedWon