Query ServiceNow table
servicenow_query_tableRead records from any ServiceNow table via the Table API. Filter with encoded queries, select specific fields, and paginate or export large results as JSON or CSV.
Instructions
Read records from any ServiceNow table through the Table API. Supports encoded queries, field selection and pagination.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of records to return (default 10). | |
| query | No | Encoded query (sysparm_query), e.g. 'active=true^priority=1^ORDERBYDESCsys_created_on'. | |
| table | Yes | Table name, e.g. 'incident', 'sys_user', 'change_request'. | |
| fields | No | Columns to return. Omit to return all columns. | |
| format | No | Output format: 'json' (default), or 'csv' for a spreadsheet-friendly export. | |
| offset | No | Number of records to skip, for pagination. | |
| fetchAll | No | When true, page through all matching records (up to the server's SN_MAX_RECORDS cap) instead of a single page. | |
| instance | No | Connection profile to use for this call (default: the active profile). See servicenow_list_instances. | |
| displayValue | No | Return display values ('true'), raw values ('false', default) or both ('all'). |