2.1.0 • Published 9 months ago

@managed-api/service-now-sr-connect v2.1.0

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
9 months ago

ScriptRunner Connect Managed API for Service Now

Managed API for Service Now is an API Client for Service Now by Adaptavist. You can read more about Managed APIs here.

This is ScriptRunner Connect runtime specific version of the Managed API (with sr-connect suffix). If you want to use Managed API in any other runtime, have a look at the runtime agnostic version.

Supported API calls

Constructing Managed API

In ScriptRunner Connect a Managed API is constructed for you, but if you need to construct it manually, here's how you can do it:

import { ServiceNowApi } from '@managed-api/service-now-sr-connect';

export default async function() {
    const api = new ServiceNowApi('API_CONNECTION_ID');
}

Contact

Feel free to drop ideas, suggestions or improvements into our Slack community channel.

Changelog

  • 2.1.0

    • Added Content-Type: application/octet-stream header to Upload Binary File to a Record that can be used as Attachment.uploadBinaryFile or All.uploadBinaryFile.
  • 2.0.0

    • Breaking change: URL and query string parameters are now URL encoded, meaning if you encoded them explicitly before you have to remove your own encoding, otherwise they will get double encoded.
  • 0.3.0

  • 0.1.5

    • Fixed README

Copyright Adaptavist 2022 (c) All rights reserved