Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Query REST API to find Incident which were updated in last 7 days

eyal_nscale
Kilo Explorer

I need to create a query that find Incidents that were updated in the last 7 days in using the rest API.

The documentation doesn't show how to do that. but when i use the UI i see a batch controller being used and passing something like:

{"query": {"and": [{"fieldName": "UpdatedOn", "operator": ">", "value": "...."}]}}

How do i construct the query programmatically against the rest API?
0 REPLIES 0