SDK 4.8.0 #84
bryce-godfrey
announced in
Announcements
Replies: 1 comment 2 replies
-
|
Hey @bryce-godfrey, is there a dependency on Australia? ❯ now-sdk install --auth sb1 -d
[now-sdk] DEBUG: Debug logging enabled
[now-sdk] Starting installation...
[now-sdk] ERROR: Error: Unauthorized
at Connector.fetchApiNowTable (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/connector.js:363:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connector.appUpgradeStatus (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/connector.js:218:32)
at async Orchestrator.installStatus (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/orchestrator.js:813:16)
at async Orchestrator.install (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/orchestrator.js:634:47)
at async Object.handler (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-cli/dist/command/install/index.js:142:13)
❯ now-sdk install --auth sb2 -d
[now-sdk] DEBUG: Debug logging enabled
[now-sdk] Starting installation...
[now-sdk] Access Token has expired, refreshing token
[now-sdk] ERROR: Error: Unauthorized
at Connector.fetchApiNowTable (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/connector.js:363:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Connector.appUpgradeStatus (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/connector.js:218:32)
at async Orchestrator.installStatus (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/orchestrator.js:813:16)
at async Orchestrator.install (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-api/dist/orchestrator.js:634:47)
at async Object.handler (/Users/zayang/.nvm/versions/node/v20.19.2/lib/node_modules/@servicenow/sdk/node_modules/@servicenow/sdk-cli/dist/command/install/index.js:142:13)
❯ now-sdk install --auth sb3 -d
[now-sdk] DEBUG: Debug logging enabled
[now-sdk] Starting installation...
[now-sdk] Access Token has expired, refreshing token
[now-sdk] DEBUG: packing directory dist/app to /Users/zayang/code/sn-fluent-nowsdk/wd-role-provision-v4/target/pp_hr_wd_role_automation_1_2_0.zip
[now-sdk] DEBUG: installing package /Users/zayang/code/sn-fluent-nowsdk/wd-role-provision-v4/target/pp_hr_wd_role_automation_1_2_0.zip
[now-sdk] Rollback (undo installation): https://ppsb3.service-now.com/sys_rollback_context.do?sys_id=73b03b093b2d4750c660d49693e45a82
[now-sdk] DEBUG: Activating flows...
[now-sdk] DEBUG: No flows to activate
[now-sdk] Installation completed. Access the application at: https://ppsb3.service-now.com/sys_app.do?sys_id=c801213387167a1000c74b59dabb35cd |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@servicenow/sdk— Release NotesVersion:
4.8.0Availability: npm — https://www.npmjs.com/package/@servicenow/sdk
🚀 Overview
Version 4.8.0 is a big one. Playbooks are now authorable in Fluent with full support for triggers, lanes, activities, and decisions. Five new APIs are introduced in this release:
RestMessage,Alias,AliasTemplate,RetryPolicy, andDataLookup. Declarative record deletion arrives viaNow.del(), and the newnow-sdk queryCLI command lets you query your instance directly from the terminal — making AI-assisted development significantly more powerful when paired withnow-sdk explain.New APIs
Playbook
Define and maintain Playbooks through Fluent! Supported capabilities in this first release include triggers, lanes, activities, and decisions! We encourage all Playbook authors to try this out and share feedback in the discussions area — a rich roadmap of enhancements planned across upcoming releases
Now.del()Defines marking records for deletion in Fluent apps. Supports coalesce key lookups,
Now.IDreferences, and direct GUIDs.RestMessage
Defines outbound HTTP integrations (
sys_rest_message) with a base URL, shared authentication (Basic or OAuth 2.0), shared headers, and one or more callable HTTP method functions (sys_rest_message_fn). Called at runtime viasn_ws.RESTMessageV2.Alias
Defines a Connection & Credential Alias (
sys_alias) — a named handle that integrations, Flow Designer actions, and scripts use to reference a connection and credential pair without hard-coding instance-specific values. Supports HTTP, JDBC, Basic, and JMS connection types.Alias Template
Defines a Connection & Credential alias template (
sys_alias_templates) — a reusable configuration that drives the wizard UI shown when a user sets up a connection alias.RetryPolicy
Defines a Retry Policy record (
sys_retry_policy) that controls how outbound integration connections handle transient failures — including strategy (fixed_time_interval,exponential_backoff, orretry_after), attempt count, wait interval, and the encoded query condition that determines when to retry.DataLookup
Defines a Data Lookup definition (
dl_definition) that automatically copies field values from a matching row in a custom matcher table (extendingdl_matcher) to a target source record when configurable match conditions are met.CLI
now-sdk querycommandRuns a read-only Table REST API query against your authenticated ServiceNow instance directly from the terminal (no browser required). Useful for resolving live instance data while writing Fluent code: looking up sys_ids, inspecting table schemas, checking existing records, reading choice values, and more.
Pass
-o jsonfor machine-readable output — the response envelope includesok,records,hasMore, andnextOffsetfor pagination:Use with AI tooling.
now-sdk querypairs naturally withnow-sdk explainfor AI-assisted Fluent development.now-sdk explaingives an AI agent SDK documentation and API reference;now-sdk querygives it live, instance-specific data (actual sys_ids, real schema, existing record state). Together they let an AI agent write accurate Fluent code against your instance rather than guessing at values.Type System
$overrideonDataPolicyandUserPreference(#2661)DataPolicyandUserPreferencenow support$override(Now.Internal.OverrideProperties) for merge-mode control.ScheduledScriptsupports$meta(#2685)ScheduledScriptnow acceptsNow.Internal.Meta, enabling$meta: { installMethod: 'once' }for one-time execution scripts.ACL
fieldaccepts custom column types (#2685)The
fieldproperty on ACL definitions now acceptsstringin addition to the typed union, allowing custom column names beyond the predefined set.Bug Fixes
** Fixed corrupted zip files produced by pack for apps containing binary assets (e.g.
.eotfont files).Script action output variable flattening — Fixed complex object types (
FlowArray,FlowObject) in script action step output variables being flattened to simple string columns during transform.Dashboard
descriptionandcertifiedfields lost on round-trip — Dashboard API now correctly preserves thedescriptionandcertifiedfields through round-trip build and transform.Mandatory string fields dropped during transform — Mandatory string fields in
Recorddefinitions are now preserved during XML→Fluent transform.Missing
__action_status__mapping withwfa.errorEvaluation()— Fixed missing__action_status__sys_element_mappingrecord whenwfa.errorEvaluation()is present. Without this record, datapills in error evaluation status messages were not rendered by the platform.Tabledefaultsaccessible_fromto'public'—Tablenow defaultsaccessible_fromto'public', enabling platform UI components (e.g. Studio) to reference the table without an explicit override.now-sdk initcrash on missing vendor prefix —now-sdk initno longer crashes when the instance's vendor prefix API returnsundefined. Falls back to thex_default prefix.This discussion was created from the release SDK 4.8.0.
Beta Was this translation helpful? Give feedback.
All reactions