Skip to content

insomniacc/PSSnow

Repository files navigation

PSSnow

Build PSSnow powershell gallery License

Summary

A powershell module for interacting with the various ServiceNow REST API's.

This module has a framework built around the Table API allowing it to support any Service-Now instance.
Focusing on the Table API initially for CRUD operations, this module also supports batch, attachment, import, service catalog and aggregate API's with more to come in future.
I've built this in my spare time, if you do find it useful I would greatly appreciate any feedback or support.

A bit more... This is the first public module I've released so please go easy 😀.
As always, ensure you understand any scripts before you run them and make sure to do your own testing.
If you do find any bugs, it's still early days, so please help me improve and log an issue.

I've worked for a few large orgs with vastly different implementations of Service-Now, some more out of the box, others heavily modified. Finding a suitable 'one size fits all' module was quite hard and I ended up building from scratch or improving existing modules in each case. Either way it was very time consuming. Some of the gallery modules out there I found either 1. very lacking in functionality or 2. locked behind a paywall. This repo is hopefully my solution to fill the gap.

Key Features

  • Handles rate limited requests
  • Handles OAuth auto token renewal
  • Supports using proxies
  • Auto paginated calls
  • Provides generic 'template' functions to interact with all tables
  • Provides table specific functions with auto-complete
  • Batching calls is as easy as wrapping your existing code with a scriptblock
  • Attachments can be passed through without the need to interact with the filesystem
  • Service Catalog requests and incidents can be automated
  • Filters/Queries can be copied directly from ServiceNow and used in table GET commands
  • Dot walking across tables is possible
  • Get the variables for a specified RITM
    (values for all fields logged in a request form)

Currently supports following APIs:

  • Table
  • Batch
  • Import
  • Attachment
  • Aggregate
  • ServiceCatalog

Installation

Install-Module -Name PSSnow -Repository PSGallery -Force

Usage

Reporting Issues and Feedback

Contributing

Changelog

Roadmap