python-servicenow
python-servicenow copied to clipboard
Python Library to interact and manage the ServiceNow database
``` from servicenow import ServiceNow from servicenow import Connection # Connect using default api method (JSON) conn = Connection.Auth(username='*****', password='*****', instance='cablevision') inc = ServiceNow.Incident(conn) inc = inc.fetch_one({'number': 'INC0665393'}) ``` Traceback...
I'm trying to figure out how to query a table in servicenow using either the "fetch_all" or "fetch_one" methods and use a "contains" like construct so that if I query...
I'm using the JSONv2 API like the following: from servicenow import Utils from servicenow import ServiceNow some_set_id = ... sys_history_line = ServiceNow.Base(my_connection) sys_history_line.__table__ = "sys_history_line.do" history_lines_query = Utils.format_query({ "set": some_set_id...
raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) group = grp.fetch_one({'name': 'XXXXXXX'}) print(group)
All: I'm trying use the existing Journal table method in this library to query the work notes and comments for an existing incident ticket. I've tried many different combinations of...
Help Please!! So I'm trying to update an incident ticket in a servicenow instance and need help from someone to show me how to do this with an actual example...
Is it possible using this ServiceNow Python library to somehow query all the work notes and/or comments of an incident or group of incidents? Thanks in advance!
I am trying to connect to my incident homepage with, Service now API , and I am always getting NewConnectionError(': Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))....
>[Please use `suds ` rather than SOAPpy. SOAPpy is old and clamsy.](https://github.com/Synerty/SOAPpy-py3) Import fails with: ``` File "./hostname_environment.py", line 37, in from servicenow.drivers import SOAP File "/home/infrascripting/.virtenv/servicenow/lib/python3.6/site-packages/servicenow/drivers/SOAP.py", line 3, in...
pip install fails because WSDLTools can't be installed on python 3. I've worked around this before (I think by just cloning the repo) but it's a pain. ``` c:\Pythonia\Scripts>pip install...