Retrieve Incidents after a given sys_updated_on

dattas
Tera Contributor

Hi,

I am polling ServiceNow after a certain time interval through REST API to retrieve newer Incidents. During every poll, I am passing the sys_updated_on value of last Incident. However, the query is not working. Can someone provide a sample query?

 

1 REPLY 1

Ankur Bawiskar
Tera Patron

@dattas 

if you are using OOTB table API then you can pass this in sysparm_query

something like this

GET https://instanceName.service-now.com/api/now/table/incident?sysparm_query=sys_updated_on>javascript:gs.dateGenerate('2026-08-14','10:00:00')

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader