logo

NJP

Provision your PDI or company/customer instances quicker, smarter (05): Applying Utilities

Import · Jun 09, 2020 · article

Applying Utilities

In the previous four blogs we've set up a personal user account, a Fix Script to add Personalized Lists, recommended System Properties and User Preferences, our favorite Favorites and applying plugins scripted. Another really annoying and very time consuming one… applying utilities all over again.

Utilities

There are always some utilities you want to have activated on your Personal Developer Instance. For example:- Enable Service Portal Syntax Editor Macro

- Show Contents of g_scratchpad

- UI16 Developer Patch

- View Data to Preserve

As you can already see, some are on Share, some on the Community, other sources might be a GIT repository, etcetera.

Obviously multiple ways on what you can do with this. And that's completely up-to-you! I'm just sharing my thought on this.

Batch Update Set

Because the Utilities come from several sources, or some even only described in a Community article, I've added them all in separate Update Sets to my instance. This way I've got all Utilities I'm after within reach.

Unfortunately you do have to keep track of updates on some of the Utilities, for example the ones on Share.

So now we do have all the Utilities within reach, though exporting and re-applying them all over one by one when refreshing your Personal Developer Instance is still a time-consuming job. "Batch Update Sets" is the key here!

I've just set up a parent Update Set and added the Update Sets from the Utilities I'm after as a child to this parent Update Set. Once you've added one or more child Update Sets to your parent Update set and then closed the parent Update Set, a Related Link "Export Update Set Batch to XML" will be visible on the Update Set form lay-out.

image

In short, "Export Update Set Batch to XML" will export the parent Update Sets and it's childs with their components (the actual Customer Updates!).

More on Update Set batching? See this Docs page:

https://docs.servicenow.com/bundle/orlando-application-development/page/build/system-update-sets/hie...

Loading Update Set

The exported Batch Update Set, can be imported on your Personal Developer Instance just like any other XML import you would normally do. After importing, the parent and child Update Sets should be visible when navigating to the Retrieved Update Sets. Notice the State column in the Retrieved Update Sets List View, for example:

image

You would only have to open, Preview and Commit the parent Update Set. This would already preview and commit all Update Sets! No need to preview and commit all of them one by one image.

If accidentally opening one of the child Update Sets, a small informative message is displayed:

image

Result

And that's it actually! Not much too it. Though just a thought to share with you, on how to secure the Utilities you are after, and how to re-apply all of them with as little as time-consuming possible. Obviously multiple other ways are possible to achieve the same. This is just one to share with you.

---

If any questions or remarks, let me know!

Kind regards,

Mar k Roethof

ServiceNow Technical Consultant @ Quint Technology

1x ServiceNow Developer MVP

1x ServiceNow Community MVP

---

LinkedIn

View original source

https://www.servicenow.com/community/developer-blog/provision-your-pdi-or-company-customer-instances-quicker-smarter/ba-p/2287979