Skip to content

Snippets

Snippets are reusable pieces of SuiteQL you can save and insert into the editor. Use them for joins, filters, or other fragments you write often, without saving an entire query.

Snippets are stored in NetSuite, so they are available in any browser and to other NimbusQL users.

  1. Open the Write Query screen
  2. Click Snippets

At the top of the Snippets window, choose what to show:

  • My Snippets — snippets you created. This is the default view.
  • All Snippets — snippets created by anyone in your account.

If My Snippets is empty, create a snippet or switch to All Snippets.

Each row includes:

  • Name — the snippet name
  • Category — an optional label, such as JOIN, CTE, or Filter
  • Owner — who created the snippet
  • Modified — when it was last saved
  • Preview — a short preview of the snippet code

Use search to find a snippet, and paging when there are more than 10 entries.

  1. Click New Snippet
  2. Enter a Snippet Name and the Code to reuse
  3. Optionally enter a Category and Notes
  4. Click Save Snippet

Name and code are required. You cannot save a second snippet with the same name as one you already created.

Saving closes the Snippets window. Open Snippets again to see the new entry.

To turn part of the editor into a snippet:

  1. Highlight the SuiteQL you want to keep
  2. Click Create Snippet on the selection toolbar, or open Snippets and click Save Selection
  3. Enter a name, then click Save Snippet

The Code field is filled with the highlighted text. You can edit it before saving.

  1. Click a row to select it
  2. Click Insert

The Snippets window closes and the snippet code is added at the cursor. If you have text selected in the editor, that selection is replaced. The rest of the editor is left unchanged.

If no row is selected, choose a snippet first.

You can edit or delete snippets you created. Administrators can also manage snippets created by others.

To edit:

  1. Click Edit on the row
  2. Change the name, category, notes, or code
  3. Click Save Snippet

To delete:

  1. Click Delete on the row
  2. Confirm when prompted

Click Back to return to the list without saving.

  • Snippets are stored in NetSuite. They persist across devices and browsers.
  • Other users can insert your snippets from All Snippets. They cannot edit or delete snippets they did not create (unless they are an administrator).
  • Snippets are fragments you insert. To save and reload a complete query, see Save and Load Queries.