Adaptavist Managed API for Service Now for ScriptRunner Connect environment
npm install @managed-api/service-now-sr-connectThis 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.
typescript
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 Community hub.Changelog
* 2.2.0
- Removed non-empty body from HEAD requests.
* 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
- Added support for the following Attachment methods:
* Delete Attachment that can be used as
Attachment.deleteAttachment or All.deleteAttachment.
* Get Attachments that can be used as Attachment.getAttachments or All.getAttachmentst.
* Get Attachment that can be used as Attachment.getMetadataForAttachment or All.getMetadataForAttachment.
* Upload Binary File to a Record that can be used as Attachment.uploadBinaryFile or All.uploadBinaryFile.
* Upload Multipart File Attachment that can be used as Attachment.uploadMultipartFile or All.uploadMultipartFile.
- Added support for the following Table methods:
* Delete Record from Table that can be used as Table.deleteRecord or All.deleteRecord.
* Retrieve multiple Records for the Table that can be used as Table.getRecords or All.getRecords.
* Retrieve a Record that can be used as Table.getRecord or All.getRecord.
* Update a Record with the name-value pairs that can be used as Table.updateRecordWithNameValuePair or All.updateRecordWithNameValuePair.
* Insert a Record in the Table that can be used as Table.addRecord or All.addRecord.
* Update a Record that can be used as Table.updateRecord or All.updateRecord`.* 0.1.5
- Fixed README
Copyright Adaptavist 2022 (c) All rights reserved