We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

API for Update Sets

naokihada
Kilo Contributor

Hi,

Is there API for System Update Sets?

I could transfer workflow to other server by following instruction on web UI.

Moving Workflows with Update Sets - ServiceNow Wiki

Is there any API available for following steps?

1) Load XML for System Update Sets

2) Preview imported Update Set.

3) Commit imported Update Set.

Thank you,

Naoki

1 ACCEPTED SOLUTION

Hi Naoki,



The code which is written in the UI actions I send you can be used to create the appropriate logic in an inbound web service. Which logic would go in those web services would depend a lot on the process / features of the automated deployment that you will like to implement.



http://wiki.servicenow.com/index.php?title=Web_Services#Inbound_Web_Services



Thanks,


Berny


View solution in original post

22 REPLIES 22

Stefan Baldhof1
Kilo Guru

Hi Naoki,



like Berny already stated, the process of dealing with preview conflicts / errors is the tricky part. I'd even say that this should always be done personally. In case there are no preview conflicts indeed take a look at the out-of-the-box functionality used in the UI actions.


E.g. for the last step, commiting an update set, have a look at my contribution to "Share" (share.servicenow.com/app.do#/detailV2/c7fba0502b6c8e004a1e976be8da15f4/overview) where I made use of the commit functionality.


Hi Stefan, Thank you very much for the info


Hi Stefan, Could you give a pointer how to use the code from share site.


I have downloaded successfully, but not sure how to use.


Thank you, Naoki


I found the instruction at detail page. Thank you.


ServiceNow Share


I created a module to retrieve, auto-preview and then commit multiple update sets from a single ui page.   See my Blog post:


Update Set Deployment - automating the preview and commit process