Reusable Snippets (Formula Designer)

Reusable Snippets allow you to extract a group of blocks into a reusable unit (a snippet), making it easier to maintain and reuse logic across multiple formulas.

A snippet is similar to a function: it accepts arguments and returns a value. Once created, snippets can be reused across formulas of the same Formula Type, but are stored and maintained separately from those formulas.

By default, both Snippets and Versioning are disabled. These features must be explicitly enabled in the Advanced Configuration Options (AP). You can request an admin to enable these settings via Advanced Configuration. For more details see technical user documentation How To Enable Versioning And Snippets In The Formula Designer.

Target Audience

  • Business Analysts

  • Solution Consultants

  • Pricing Managers

  • Administrators

Prerequisites

  • Formula Designer in version 15.0 - Southside or later

  • Snippets feature enabled

  • A Formula Type where Snippets will be used

Creating a Snippet

Create a Snippet using one of the following methods:

1. Add Button

  1. Go to the Snippets tab.

  2. Click Add > New Snippet.

  3. A blank snippet is created in draft state.

2. Extract from Formula

When designing a Formula, you can right-click on a block and choose Extract Block to Snippet. This action will create a draft snippet that includes the selected block, while the original block in the strategy will be replaced by the newly created snippet.

  1. Open your formula in the Draft section.

  2. Right-click a block, choose Extract Block to Snippet and enter a label.

image-20250718-133351.png

The block in the formula is replaced by the snippet, and a draft snippet is created in the Snippets tab.

3. Import

  1. Go to the Snippets tab.

  2. Click Add> Import and upload a JSON snippet definition.

The Snippet is now available for use in a Formula’s toolbox.

Using Snippet In a Formula

Insert the Snippet block from the Toolbox (sidebar). Provide values for the arguments and use it as any other block.

snippetFD.gif


Expected Result

  • Snippet is available in the Toolbox within the workspace and can be re-used in your formulas.

  • Changes to the snippet automatically reflect in all formulas using it.

See Also