Custom Commands
Create your own SN Utils slash commands with custom searches, URL templates, and context menu integration.
You can create custom slash commands tailored to your workflow.
Creating a Basic Custom Command
Let's create a custom incident search command:
- Open the incident table with filters:
/incident -f - Create a filter:
Number CONTAINS $0 Or Short Description CONTAINS $0 - Click the Updated column to sort by Updated descending

- Open the Manage page (gear icon in the popup header, or
/manage) and go to the Commands tab - Click New Custom and choose Prefill from Open Tabs
- Select the incident tab from the suggestions — URL, Hint, and Fields get prefilled from your current list

- Name the command
inc - Adjust fields to
number,short_description - Click Save

Test with /inc sap and Right Arrow — you'll see results with number and short description fields. This command works across all your instances!
Commands Tab Overview
The Commands tab on the Manage page is where you create, edit, and manage all your slash commands.
- Search existing commands — Click a result to edit it (you can overwrite built-in commands except scripted ones)
- New Custom — Create a new command from scratch or prefill from open tabs
- URL field — Use variables like
$0,$sysid. Start URL with/to always open in new tab - Icon indicator — Custom, built-in, or scripted command
- Delete button — Remove custom commands
- Order — Set order < 100 to always show at top
- Marketplace — Install curated Content Packs with ready-made commands
URL Variables
| Variable | Description |
|---|---|
$0 | Search term |
$1, $2... | Individual words from the search term |
$sysid | Current record sys_id |
$table | Current table name |
$encodedquery | Current list/filter encoded query (when available) |
$fieldname | Value from inline result fields |
$ext/ | SN Utils extension asset base URL |
Need the full reference with examples and script helpers?
See: Variables & Helper Methods
Overwrite Target URL
Some commands filter records but should open a different page. Use "Overwrite target URL" for this.
Example: The /uibe command searches experiences but opens UI Builder directly:

- URL with
sysparm_query=— Recognized as table filtering command - Fields — First two display in popup; additional fields (like
admin_panel.sys_id) available for target URL - Overwrite URL — Uses field variables like
$admin_panel.sys_id
Running /uibe util:

- Run command with search term
- Results show inline (default behavior with overwrite)
- Links point to UI Builder, not the record
- Use CTRL-Enter to open classic list instead
- Switches still work!
Context Menu Integration
Add #contextmenu to a command's URL to make it available in the right-click context menu:

After saving:

Custom Switches
Custom switches have their own dedicated Switches tab on the Manage page. Start with the guide: Slash Switches.
Advanced examples are also available at arnoudkooi.com/switch.
Legacy JSON Editing
If you prefer editing commands and switches as raw JSON, you can find the legacy JSON editors under Settings > Advanced on the Manage page. This is useful for bulk editing, copying, or backing up your custom commands and switches. Always ensure valid JSON when editing.