Automate update set

Akshat Modi1
Tera Contributor

Here we want to migrate update set from one instance to another  automatically for that we want to make a button on local update set form by clicking that button our update set automatically migrate to another instance and it should automatically preview and commit.

4 REPLIES 4

Abhijit4
Mega Sage

Yes, it is possible to implement. I have seen it implemented in my previous organization.

 

In most of the places you can utilise already written code e.g. For Preview and Commit below script include handles many functionalities.

1. UpdateSetCommitAjax

2. UpdateSetPreviewAjax

 

Your requirement is vast, it will take months to implement by covering all scenarios. I hope you are not expecting whole solution from community members. However, you can check "Commit Update Set" and "Preview Update Set" UI action on Review update set table to understand how servicenow is handling these things. You can use the same logic in your implementation ( no need to write new code)

 

Please mark answer as Correct or Helpful based on impact.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP

Akshat Modi1
Tera Contributor

but how can automatically migrate that I want to migrate update set from one instance to another on one click button.

 

 

You will have to use rest api/scripted rest api to communicate with another ServiceNow instance.

 

Please mark answer as Correct or Helpful based on impact.

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP