r/PowerShell • u/[deleted] • Mar 27 '23
Script Sharing I just released PSSnow - A module for interacting with ServiceNow REST APIs
In the past 3 weeks I've put together a PowerShell module for interacting with the ServiceNow REST API in an intuitive user friendly way.
Hopefully this comes in handy for people and allows you to write cleaner code whilst interacting with ServiceNow!
Check out my demo video here (20mins - it covers alot of features!) : https://youtu.be/UfT_pz82bn8
Powershell Gallery: https://www.powershellgallery.com/packages/PSSnow
Some of the key features:
Handles OAuth auto token renewal
Pagination is handled automatically (but can still be manually controlled)
Provides generic 'template' functions to interact with all tables
Provides table specific functions with auto-complete
Batch API integration 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 catalog form)
Github Project: https://github.com/insomniacc/PSSnow
Function Builder Demo: https://youtu.be/-KzV9Ao9Hsc
Duplicates
sysadmin • u/[deleted] • Mar 27 '23