Slash Switches
Learn how slash switches modify command behavior in SN Utils, including filters, URL params, ordering, and time-based queries.
Slash switches are small flags you add after a command to change what it does.
Example:
/incident vpn -s -p
/incident= base commandvpn= search term-sand-p= switches that modify behavior
Switch Categories
Most switches fall into one of these groups:
| Type | What It Does | Example |
|---|---|---|
| Filter switch | Adds a filter condition | -a for active records |
| URL switch | Adds URL params | -p to keep filters pinned |
| Sort switch | Adds ordering | -ud for updated desc |
| Action switch | Opens related targets | -t for table definition |
Common Everyday Switches
In below example /p is a command for the sys_properties table.
| Command | Result |
|---|---|
/p -n | Open a new record |
/p -t | Open table definition |
/p -r | Open a random record |
/incident vpn -s | Search in current scope |
/task -p | Keep filter pinned in list |
Time-Based Switches
Time switches let you query records by age.
Syntax:
-<type><number><unit>
Types:
-uupdated in the last...-ccreated in the last...-ucupdated or created in the last...-umupdated by me in the last...
Units:
ssecondsmminuteshhoursddayswweeksMmonthsqquartersyyears
Examples:
| Command | Result |
|---|---|
/incident -u5d | Updated in last 5 days |
/task -c3h | Created in last 3 hours |
/incident -uc15m | Updated or created in last 15 minutes |
/sys_script -um1w | Updated by me in last week |
Combining Multiple Switches
You can chain switches in one command:
/br myRule -u2d -s -p
That means:
- search for
myRule - only records updated in the last 2 days
- limit to current scope
- keep filter pinned
Custom Switches
Need custom behavior? You can define your own switches in the Switches tab on the Manage page (gear icon in the popup header, or /manage).
For the legacy JSON format, you can also edit switches under Settings > Advanced on the Manage page. See Custom Commands for details on the legacy JSON editing workflow.
- Advanced examples: arnoudkooi.com/switch
- Full variable reference: Variables & Helper Methods