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

Servicenow response upon deleteMultiple query #42

@Gloix

Description

@Gloix

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions