Auto close changes records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi Team,
Here is my use case:
Need some suggestions to implemented this, I know we do it via scheduled script. is there any other way to achieve this using flow designer. not familiar with flows
Give some suggestions
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago - last edited 3 hours ago
Automating the lifecycle of Change records is a critical step toward operational efficiency. While many organizations still rely on legacy Scheduled Scripts, the modern architectural approach in ServiceNow is to utilize Flow Designer. This ensures the solution is easier to maintain, audit, and upgrade.
Based on industry best practices and official frameworks, here is the recommended approach to satisfy this requirement:
1. Using Flow Designer (The Modern Approach) Flow Designer is the 'Out-of-the-Box' (OOB) standard for this type of automation. It eliminates the need for complex scripting and provides a clear visual representation of the logic.
-
Trigger: Set the trigger to 'Daily' or 'Repeat' at a specific interval.
-
Look Up Records: Use the 'Look Up Records' action to find Change Requests where:
-
Stateis 'Implement' -
Planned end dateis relative 'before' 24 hours ago
-
-
For Each Loop: Iterate through the results and use the 'Update Record' action to:
-
Set
Stateto 'Closed' -
Set
Close codeto 'Unsuccessful' -
Set
Close notesto 'Abandoned'
-
2. Why Flow Designer over Scheduled Scripts? From an Enterprise Architecture perspective, choosing Flow Designer aligns with Pillar 5 (Data Governance) and ensures a sustainable 'TO-BE' state:
-
Traceability: Every execution is logged, providing a clear audit trail of why a Change was closed.
-
Maintainability: Business stakeholders can understand the logic without needing to read JavaScript code.
-
Upgrade-Safe: Flows are less likely to break during platform upgrades compared to custom scripts.
https://www.slideshare.net/slideshow/servicenow-incident-auto-close-configuration-pdf/275085671
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Thanks for the suggestion. I’ll try it with Flow Designer and check the results.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
What you need is a flow that will look up for all the change records in state implement and planed end date before 24 hours ago & not empty. Add closed notes as you wish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
Hi Georgian,
Could you please provide more snippets of the flow, if possible elaborate actions(steps).
Thank you
