@servicenow/sdk - v4.7.0
    Preparing search index...

    This class handles http communication with the ServiceNow instance

    Implements

    Index

    Constructors

    Methods

    • Returns Promise<string>

    • Parameters

      • scope: string

      Returns Promise<{ finished: boolean; id: string }>

    • Parameters

      • scope: string
      • Optionaloptions: { method: "complete" } | { lastPull?: string; method: "incremental" }

      Returns Promise<Response>

    • Parameters

      • updateSetId: string
      • scopeId: string

      Returns Promise<Response>

    • Fetch a resource from the ServiceNow instance

      Parameters

      • path: string

        Subpath to fetch from the instance (ex: /api/now/table/incident)

      • Optionalinit: RequestInit

        Request options to pass to fetch (Default: { method: 'GET', headers: { 'Content-Type': 'application/json' } })

      • Optionalparams: URLSearchParams

      Returns Promise<Response>

      The response from the fetch request or an error if the request failed

    • Returns URL

    • Returns Promise<string | undefined>

    • Parameters

      • progressId: string

      Returns Promise<{ percent_complete: number; status: string; status_message: string }>

    • Parameters

      • Optionalscope: string
      • OptionalscopeId: string

      Returns Promise<
          | {
              active: boolean;
              appId: string;
              name: string;
              scope: string;
              shortDescription: string;
              sysClassName: string;
          }
          | undefined,
      >

    • Returns Promise<boolean>

    • Parameters

      • updateSetId: string

      Returns Promise<number>

    • Parameters

      • sysIds: string[]
      • scope: string

      Returns Promise<CustomizeOrMoveResult[]>

    • Parameters

      • api: string
      • search: URLSearchParams

      Returns Promise<{ status: number; value: string }>

    • Parameters

      • scopeId: string

      Returns Promise<void>

    • Mapping between script include identifiers and their sys_id

      Returns Promise<Record<string, string>>

      Mapping of script to scripd sys_id (Example: { 'global.JSUtil': '1e2e4e24c1af42bea7f0c0f9fa40fbeb' })

    • Produces the typescript definition for glide server scriptables

      Returns Promise<string>

    • Produces the definitions for script includes

      Parameters

      • scriptIncludeIds: string[]

      Returns Promise<Record<string, string>>

    • Parameters

      • scopeId: string
      • isStoreApp: boolean

      Returns Promise<Response>

    • Parameters

      • sysIds: string[]
      • scopeId: string

      Returns Promise<UnloadedRecord[]>

    • Parameters

      • file: Blob
      • options: {
            appInfo?: { scope: string; scopeId: string; version: string };
            installAsync?: boolean;
            isStoreApp?: boolean;
            loadDemoData?: boolean;
            registerScope?: boolean;
            timeoutMs?: number;
        }

      Returns Promise<{ rollbackId: string; trackerId: string } | undefined>

    • Parameters

      • scopeId: string
      • files: { blob: Blob; name: string }[]
      • Optionaloptions: { targetUpdateSetId?: string; timeoutMs?: number }

      Returns Promise<string>