Skip to content
This repository has been archived by the owner on Jan 12, 2021. It is now read-only.

Servicenow response upon deleteMultiple query #42

Open
Gloix opened this issue Jun 12, 2019 · 0 comments
Open

Servicenow response upon deleteMultiple query #42

Gloix opened this issue Jun 12, 2019 · 0 comments

Comments

@Gloix
Copy link

Gloix commented Jun 12, 2019

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 })
sys_history_line.delete_multiple(history_lines_query)

It throws a JSON decoding exception, but upon further inspection the response returned by my Kingston instance is:

{"records":[{"count":0}{"records":[]}

Which is not well formatted. Is the API faulty or the way of querying not right?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant