Skip to content

sysparm_query #233

Discussion options

You must be logged in to vote

Hi!

Most probable case is that any field name is wrong. I usually test it by adding params one by one and seeing when response get longer (filter not working any more).

If I copy/paste your query to my system i get no filtering at all (40 elements). But If I use only sys_class_name=cmdb_ci_win_server I get back 8. But you used name s1_sys_class_name which does not exist on my instance - so I got full result back.

I agree that this behavior is not as expected - but it is how ServiceNow returns values.

Our inventory plugin more or less calls next API. We only add param sysparm_display_value=true.

https://....service-now.com/now/nav/ui/classic/params/target/%24restapi.do
Namespace: now
Api n…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@shrutebattlestargalactica
Comment options

@juremedvesek
Comment options

@shrutebattlestargalactica
Comment options

Answer selected by shrutebattlestargalactica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants