Manage update sets for development, testing, and production promotion
✓Works with OpenClaudeYou are a ServiceNow administrator and developer. The user wants to manage update sets for development, testing, and production promotion across ServiceNow instances.
What to check first
- Verify you have the "update_set_admin" or "admin" role in your source instance by checking System Security > User > [Your User] > Roles
- Confirm the target instance (test/prod) has the same plugin versions and base system applications as your source instance
- Run a quick query: navigate to System Update Sets > Updates and verify at least one update set exists in your source instance
Steps
- Create a new update set in your source instance by navigating to System Update Sets > Updates and clicking "New"
- Name the update set descriptively (e.g., "INCIDENT_WORKFLOW_Q1_2024") and set the description with business context
- Set the "Track synonyms?" field to "Yes" if you're customizing dictionary translations or field labels
- Make all your customizations (create/modify workflows, forms, business rules, scripts) while the update set is in the "In Progress" state
- Navigate back to your update set and click "Close" to mark it complete and ready for preview
- Click "Preview Update Set" to validate all captured changes and identify any missing dependencies
- Export the update set by clicking the three-dot menu and selecting "Export" to download the XML file as a backup
- Click "Send for Review" or "Send to Production" (depending on your instance topology) to move it to the target instance
- In the target instance, navigate to System Update Sets > Inbound and locate your update set, then click "Preview" to verify compatibility
- Click "Commit" to apply all changes to the target instance; ServiceNow will execute all captured updates in order
Code
// Script to programmatically create and manage an update set
var updateSetAPI = new GlideUpdateSetAPI();
// Create a new update set
var updateSetGR = new GlideRecord('sys_update_set');
updateSetGR.initialize();
updateSetGR.name = 'CUSTOM_FEATURE_DEPLOYMENT_' + new GlideDateTime().getDisplayValue();
updateSetGR.description = 'Custom feature for user authentication workflow';
updateSetGR.track_synonyms = true;
var insertedSetID = updateSetGR.insert();
gs.log('Update Set Created: ' + insertedSetID);
// Set as current update set for capturing changes
var currentUpdateSetID = GlideUpdateSetAPI.getCurrentUpdateSetID();
GlideUpdateSetAPI.setCurrentUpdateSet(insertedSetID);
gs.log('Current Update Set Set To: ' + insertedSetID);
// Query all updates in the update set
var updates = new GlideRecord('sys_update_xml');
updates.addQuery('update_set', insertedSetID);
updates.query();
var updateCount = 0;
while (updates.next()) {
updateCount++;
gs.log('Captured Update:
Note: this example was truncated in the source. See the GitHub repo for the latest full version.
Common Pitfalls
- Treating this skill as a one-shot solution — most workflows need iteration and verification
- Skipping the verification steps — you don't know it worked until you measure
- Applying this skill without understanding the underlying problem — read the related docs first
When NOT to Use This Skill
- When a simpler manual approach would take less than 10 minutes
- On critical production systems without testing in staging first
- When you don't have permission or authorization to make these changes
How to Verify It Worked
- Run the verification steps documented above
- Compare the output against your expected baseline
- Check logs for any warnings or errors — silent failures are the worst kind
Production Considerations
- Test in staging before deploying to production
- Have a rollback plan — every change should be reversible
- Monitor the affected systems for at least 24 hours after the change
Related ServiceNow Skills
Other Claude Code skills in the same category — free to download.
ServiceNow Scripted REST
Build Scripted REST APIs with request/response handling
ServiceNow Business Rule
Create business rules with before/after/async triggers and conditions
ServiceNow Flow Designer
Build automated workflows with Flow Designer actions and subflows
ServiceNow Client Script
Write client scripts for form manipulation (onChange, onLoad, onSubmit)
ServiceNow Catalog Item
Build service catalog items with variables, workflows, and fulfillment
ServiceNow Integration Hub
Connect ServiceNow with external systems using IntegrationHub spokes
ServiceNow ATF Testing
Write automated tests with Automated Test Framework
ServiceNow UI Builder
Build custom portal pages with UI Builder and components
Want a ServiceNow skill personalized to YOUR project?
This is a generic skill that works for everyone. Our AI can generate one tailored to your exact tech stack, naming conventions, folder structure, and coding patterns — with 3x more detail.