Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

Poll an external API on a schedule and create an Incident only when the value changes

abubakarsal
Kilo Contributor

We need ServiceNow to call an external API on a fixed interval and read a tag that holds only 1 (alarm active) or 0 (no alarm). An Incident should be created only on the 0 → 1 transition — not on every poll while the value stays at 1.

Did we do all that in ServiceNow without needing a middleware for specific conditional check. If yes then what will be the complete workflow and how to design or implement this?

 

2 REPLIES 2

Vishal Jaswal
Tera Sage

Hello @abubakarsal 

if the external application supports REST API and holds the audit/transition where it says tag old value as 0 and tag new value as 1, then ServiceNow can capture that as payload and make a decision accordingly like data.oldValue != data.newValue to create incident.


Hope that helps!

Thankyou, vishal for reply. the application support REST API but does not hold the audit/transition record. 
Is any thing other than that, we can do with the solution.