fluent_sdk_query
Query ServiceNow tables from the CLI via the SDK to inspect schemas, resolve sys_ids, and check records during Fluent code authoring.
Instructions
Run now-sdk query <table> — a read-only Table REST API query executed via the ServiceNow SDK CLI against your authenticated instance (no browser). New in @servicenow/sdk 4.8. Ideal while authoring Fluent code: resolve sys_ids, inspect table schemas, check existing records, read choice values. Example: { table: "sys_user_role", query: "name=admin", fields: ["sys_id","name"], limit: 1 }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Max rows to return | |
| query | No | Encoded query string (e.g., "name=admin^active=true") | |
| table | Yes | Table to query (e.g., "incident", "sys_dictionary") | |
| fields | No | Fields to return (e.g., ["sys_id","name"]) |