Problem: Automating Update Set Transfer with UI Actions in ServiceNow

Onkie
Tera Contributor

I want to automate the process of transferring an update set between ServiceNow instances using a UI Action, eliminating the need for manual XML downloads and uploads.

Requirements:

  1. UI Action that:
    • Exports the Update Set as XML from one instance.
    • Sends it to the target instance via REST API.
    • Previews and commits the update set automatically on the target instance.

Challenges:

  • Exporting Update Set: How can we export an update set (including scripts, business rules, etc.) as XML using UI Actions?
  • Secure Transfer: What’s the best way to securely transfer the XML file between instances using REST API from a UI Action?
  • Preview/Commit: How can we trigger the preview and commit of the update set on the target instance via UI Action?
2 REPLIES 2

Bert_c1
Kilo Patron

See:

 

https://www.servicenow.com/docs/bundle/yokohama-application-development/page/build/system-update-set...

 

Use the "Update Sources" module from the Navigation menu. In Prod, defined Test as an Update Source, in Test define Dev as an Update Source.  Then login to the desired instance as Admin and retrieve any Completed update sets in the lower instance. Refer to the documentation link I posted.

Onkie
Tera Contributor

I need to make a button on the sys_update_set form which will send a particular update completely to the other instance.