sn_read
Read one or multiple records from any ServiceNow table using sys_id or an encoded query string. Filter results with fields, limit, and ordering.
Instructions
Read one or many records from any ServiceNow table.
Provide sys_id to fetch a single record by ID
Provide query (encoded query string) to search multiple records
Leave both blank to get the first N records
Examples: table="incident" sys_id="abc123..." table="incident" query="active=true^priority=1^assigned_to=javascript:gs.getUserID()" limit=10 table="sys_user" query="active=true^email=john@company.com" table="sc_cat_item" query="active=true^nameLIKElaptop" fields="name,short_description,price"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| table | Yes | ServiceNow table name | |
| sys_id | No | Fetch a single record by sys_id | |
| query | No | Encoded query string (e.g. "active=true^priority=1") | |
| fields | No | Comma-separated field names to return | |
| limit | No | Max records for multi-record reads | |
| order_by | No | Field to order by (prefix with - for descending, e.g. "-sys_created_on") |