Custom Logic overview
The Custom Logic feature allows you to define logic rules for standard and custom objects by using decision tables, decision trees, or functions. When objects are created or updated, Zuora triggers the rules to validate data accuracy or manipulate field values.
To turn on the Custom Logic feature in Production environments, submit a request at Zuora Global Support.
Triggering mechanism
When an object is created or updated through the UI or API, Zuora triggers the custom logic defined on this object type. If the custom logic is evaluated successfully, Zuora will create or update the object. If the evaluation fails, Zuora will display the error message configured in the custom logic and will not create or update the object.
Supported custom logic types
Zuora supports the following custom logic types:
Custom logic type | Coding experience needed? | Support standard objects? | Support custom objects? | Support logic rules with if-then statements? | Support logic rules with if-then-else statements? |
---|---|---|---|---|---|
Decision table | No | Yes | No | Yes | No |
Decision tree | No | Yes | No | Yes | Yes |
Function | Yes (JavaScript) | Yes | Yes | Yes | Yes |
Expectations
- Custom Logic is not supported by Audit Trail and Deployment Manager.
- Central Sandbox refresh does not copy Custom Logic data.