Poll an external API on a schedule and create an Incident only when the value changes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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.
