> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://zuora.ferndocs.com/_mcp/server. # Custom Logic ## Docs - [Custom Logic overview](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/custom-logic-overview.md): 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. - [Decision table overview](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/decision-table/decision-table-overview.md): Decision table, a supported custom logic type in Zuora, allows you to define logic rules for standard objects with a table-like codeless user interface. - [Create a decision table](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/decision-table/create-a-decision-table.md): Learn how to create a decision table. - [Decision tree overview](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/decision-tree/decision-tree-overview.md): Decision tree, a supported custom logic type in Zuora, allows you to define logic rules for standard objects with a codeless user interface. - [Create a decision tree](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/decision-tree/create-a-decision-tree.md): Learn how to create a decision tree. - [Function overview](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-overview.md): Functions are user-defined JavaScript code snippets to ensure data integrity and drive automation in your business use cases, such as validating data format or performing complex calculations. - [Function format](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-format.md): Introduces the format and best practices of using functions. - [Format of validation functions](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-format/format-of-validation-functions.md): Describes the format of validation functions, such as function syntax, parameters, and return values. - [Format of formula functions](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-format/format-of-formula-functions.md): Describes the format of formula functions, such as function syntax, parameters, and return values. - [Create a function from scratch](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/create-a-function-from-scratch.md): Learn how to create a function from scratch. - [Create a function from templates](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/create-a-function-from-templates.md): Learn how to create a function from built-in templates. - [Update a function](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/update-a-function.md): Learn how to update a function. - [Activate a function](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/activate-a-function.md): Learn how to activate a function that is in the Draft or Inactive status. - [Delete a function](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/delete-a-function.md): Learn how to delete a function. - [Test a function](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/function-management/test-a-function.md): Learn how to test a function when creating or updating it. - [Validation function use cases](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/use-cases-and-code-samples/validation-function-use-cases.md): Common use cases and code samples of validation function. - [Formula function use cases](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/function/use-cases-and-code-samples/formula-function-use-cases.md): Common use cases and code samples of formula function. - [Objects and fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic.md): Lists objects and fields supported by the Custom Logic feature. - [Account fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/account-fields-supported-by-custom-logic.md): This reference lists the fields of the Account object that are supported by the Custom Logic feature. - [Contact fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/contact-fields-supported-by-custom-logic.md): This reference lists the fields of the Contact object that are supported by the Custom Logic feature. - [Credit Memo fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/credit-memo-fields-supported-by-custom-logic.md): This reference lists the fields of the Credit Memo object that are supported by the Custom Logic feature. - [Debit Memo fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/debit-memo-fields-supported-by-custom-logic.md): This reference lists the fields of the Debit Memo object that are supported by the Custom Logic feature. - [Invoice fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/invoice-fields-supported-by-custom-logic.md): This reference lists the fields of the Invoice object that are supported by the Custom Logic feature. - [Order Line Item fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/order-line-item-fields-supported-by-custom-logic.md): This reference lists the fields of the Order Line Item object that are supported by the Custom Logic feature. - [Payment fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/payment-fields-supported-by-custom-logic.md): This reference lists the fields of the Payment object that are supported by the Custom Logic feature. - [Rate Plan Charge fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/rate-plan-charge-fields-supported-by-custom-logic.md): This reference lists the fields of the Rate Plan Charge object that are supported by the Custom Logic feature. - [Rate Plan fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/rate-plan-fields-supported-by-custom-logic.md): This reference lists the fields of the Rate Plan object that are supported by the Custom Logic feature. - [Refund fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/refund-fields-supported-by-custom-logic.md): This reference lists the fields of the Refund object that are supported by the Custom Logic feature. - [Subscription fields supported by Custom Logic](https://zuora.ferndocs.com/docs/platform/extensibility/custom-logic/objects-and-fields-supported-by-custom-logic/subscription-fields-supported-by-custom-logic.md): This reference lists the fields of the Subscription object that are supported by the Custom Logic feature.