sysparm_query

mstancheva
Tera Contributor

Hello,

How can I check for two values of one property of incident with sysparm_query

example: filter all Incidents by incident_state=1 or incident_state=2

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hi Mihaela,



You can use this query or URL



https://instance_name.service-now.com/incident_list.do?sysparm_query=incident_state=1^ORincident_sta...



Replace instance name with your instance



sysparm_query=incident_state=1^ORincident_state=2



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


View solution in original post

5 REPLIES 5

Alikutty A
Tera Sage

Hi Mihaela,



You can use this query or URL



https://instance_name.service-now.com/incident_list.do?sysparm_query=incident_state=1^ORincident_sta...



Replace instance name with your instance



sysparm_query=incident_state=1^ORincident_state=2



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response


amlanpal
Kilo Sage

Hi Mihaela,



Please use sysparm_query=incident_stateIN1,2.



I hope this helps.Please mark correct/helpful based on impact


Thbak you vary much very helpful and working


If any of the above responses have answered your question, please mark it as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.



https://community.servicenow.com/docs/DOC-5601



Thanks


Please Hit like, Helpful or Correct depending on the impact of the response