I'm trying to disable the billing trigger for a specific usage type. CPQ uses the standard trigger to roll usages into the usage summary—any suggestions?
I need to diable billing triggers from apex, if usage have type field equals to rebate. we are creating usages using scheduler apex.
Hi Subham
Salesforce Billing's managed package triggers generally can't be selectively disabled from custom Apex. If CPQ/Billing automatically rolls Usage records into Usage Summaries, there isn't a supported API to bypass the trigger for only one Usage Type (such as Rebate). A better approach is to:
- Verify whether the managed package provides a custom setting, custom metadata, or feature flag to exclude specific usage types.
- If possible, prevent Rebate usage records from being processed by the Billing engine through configuration rather than trying to disable the trigger.
- If you're creating Usage records in a scheduled Apex job, consider staging the rebate records in a custom object and only creating Billing Usage records for the types that should be summarized.
If this behavior isn't configurable, I'd recommend opening a Salesforce Billing support case, as managed package trigger behavior isn't intended to be bypassed from custom Apex.
Best,
Golla