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 command
  • vpn = search term
  • -s and -p = switches that modify behavior

Switch Categories

Most switches fall into one of these groups:

TypeWhat It DoesExample
Filter switchAdds a filter condition-a for active records
URL switchAdds URL params-p to keep filters pinned
Sort switchAdds ordering-ud for updated desc
Action switchOpens related targets-t for table definition

Common Everyday Switches

In below example /p is a command for the sys_properties table.

CommandResult
/p -nOpen a new record
/p -tOpen table definition
/p -rOpen a random record
/incident vpn -sSearch in current scope
/task -pKeep filter pinned in list

Time-Based Switches

Time switches let you query records by age.

Syntax:

-<type><number><unit>

Types:

  • -u updated in the last...
  • -c created in the last...
  • -uc updated or created in the last...
  • -um updated by me in the last...

Units:

  • s seconds
  • m minutes
  • h hours
  • d days
  • w weeks
  • M months
  • q quarters
  • y years

Examples:

CommandResult
/incident -u5dUpdated in last 5 days
/task -c3hCreated in last 3 hours
/incident -uc15mUpdated or created in last 15 minutes
/sys_script -um1wUpdated 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.