------------
pip install servicenow_client
Usage examples::
--------------
import servicenow_client
# Create object
# if empty_error is True, exception will be raised if query result is empty
obj = servicenow_client.servNow(instance='myinstance', user='myuser', password='mypassword', empty_error=True)
# Create a new record
obj.create(table='incident', data={'short_description':'My Incident Ticket'})
# Update record(s) based on search condition
# searchList=['field', 'operator', 'value']
obj.update(table='incident', searchList=[['short_description','is','My Incident Ticket'], ['number','is not','INC0010022']], data={'state': '1'})
# Search for record(s) and display only 'number' and 'sys_id' from the results
# if fields is not defined it will return all fiels in response
obj.search(table='incident', searchList=['short_description','is not empty'], fields='number,sys_id')
# Delete record(s) based on search condition
obj.delete(table='problem', searchList=['short_description','is','Problem Ticket'])
# Change state of record(s) based on search condition
obj.changeState(table='incident', searchList=['short_description','is','ISAN Problem 2'], state='In progress')
# Download a specific attachement or particular type of attachement related to record(s) based on search condition
obj.getFile(table='incident', searchList=['short_description','is','test123'], type='.jpg')
# Upload an attachement to record(s) that satisfy the search condition
obj.uploadFile(table='incident', searchList=['short_description', 'is', 'test'], filename='D:\Tulips.jpg')
# Delete an attachement from record(s) that satisfy the search condition
obj.deleteFile(table='incident', searchList=['short_description', 'is', 'Upload 4'], filename='Riddles Treasure Hunt.pdf')
# Send email related to a particular record
# To send email not related to any specific record skip 'table' and 'sysId' fields
obj.sendEmail(table='incident', subject='Hello', message='hi', to='abc@example.com, xyz@example.com', sysId='33434f713200e1e0b5e18110c75b')
# Read email, where sysId is sysId of email
obj.readEmail(sysId='33434f713200e1e0b5e18110c75b')
Compatibility
-------------
Python 2 Tested: Python 2.6+
ServiceNow Tested: Istanbul, Geneva
Author
------
Created by Parul Neeraj <parulneeraj007@gmail.com> in 2017
Metadata
Release files for servicenow-client 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| servicenow_client-0.1.0.zip | 8.0 kB | Without provenance | Details for servicenow_client-0.1.0.zip |
Release files / servicenow_client-0.1.0.zip
| Download URL | servicenow_client-0.1.0.zip |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bbc5aedc4810537e35198c0ae24c908abd8ba9f6798c4e3b8645f9499b786db7
|
|
BLAKE2b-256 checksum How to use checksums |
e7ed9af8af3820c69fcad019d641c6f128ce8347669cbc37bbbcfc376205fa8d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for servicenow-client 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.