Skip to content

Conversation

@d-sharmagit
Copy link
Contributor

PR Description:

Scheduled Script Execution: Auto-cancel RITM if group manager approval pending after 30 days

This script:

  • Finds RITM records older than 30 days
  • Checks if any group manager approvals are still pending (state='requested')
  • If so, cancels the RITM (sets state to 'Cancelled')
    Usage:
  • Schedule this script to run daily

@bird-03 bird-03 self-assigned this Oct 24, 2025
@bird-03
Copy link
Contributor

bird-03 commented Oct 24, 2025

@d-sharmagit

Thanks for your contribution!

Schedule script looks good to update and cancel the approvals pending for 30 days. Going forward helpful if you can add descriptive description and comments.

Keep contributing! Happy Hacking

@bird-03 bird-03 merged commit d9aafaa into ServiceNowDevProgram:main Oct 24, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants