
However, we have moved onto creating invoices, and are not able to follow the same pattern with these objects. We are using Salesforce Billing to generate the invoice, and connecting as an administrator, but get the following message when we attempt to delete an invoice line:
InvoiceLine cannot be deleted
When we try and delete an invoice line via the UI we get the same error message.
The profile used is the standard System Administrator one, which appears to have all the CRUD access on both the Invoice and the InvoiceLine objects. Does anyone know what is stopping us complete this action?
4 Antworten
Hi Will,
The Billing package triggers have validations to prevent deleting invoice lines and invoices. There is a package setting called Disable triggers that can do just that for your tests. If it's possible to get to and change via code, it's here: Custom Settings > Billing Config > DISABLE_TRIGGERS.
-Frank