A URL in ServiceNow is more than it seems at first glance. The various components of a URL actually contain quite a bit of information about what the system will do when that URL (or link) is used. One way that you can leverage the ServiceNow URL structure is by using the ‘sysparm_query’ argument to return a list of certain records. You can also use ‘sysparm_query’ as a way of setting default values on a new record if necessary. This article shows you how.
This URL opens a new incident record with default values for ‘Active’, ‘Priority’, and ‘Short Description’.
Another place where you can apply the same concept is in module links in the left navigation pane. Since modules use the defined module parameters to create a URL, you can leverage the module filter and arguments to create ‘sysparm_query’ arguments in your module link. Simply create a module with a ‘Link Type’ of ‘New Record’ on whatever table you want and populate the ‘Filter’ field with the field/value pairs you want. This image shows how you could create a module to open a new incident record with default values for ‘Active’, ‘Priority’, and ‘Short Description’.