VS Code extension iKosak Sync Now for ServiceNow development is now open source. Hosted on Github, powered by Github Actions and everyone can contribute 🎉. Go check the sources right away.
What happened I have decided to host my VS Code extension on Github. Everyone may read the source code and contribute. I’m sure that transparency of such a tool is very important, since you should know how your authentication data is stored.
Moment.js is great library for interacting with date and time. It helps you parse, validate, manipulate, and display dates.
Did not hear about Moment.js? Check the docs.
How to install for server side usage Download the source code at https://momentjs.com/downloads/moment.js Create a script include named “moment” and fill with source code. The moment object is ready to be used in all server side code expressions. How to install for client side usage If you want to use Moment.
Sometimes customer needs to put much text into the Annotation for a Catalog Variable. Here is how we can show this information using a modal popup. We will link a KB article to variable annotation and show the article when a link is clicked. Here now it looks like in action:
Solution 1. Create a new table New table: SC 2 KB (for storing relations between Catalog Item and Knowledge article) Fields: Number (string), Name (string), Catalog Item (Reference to sc_cat_item), KB Article (Reference to kb_knowledge)
This article will tell you about the posibility of setting fixed filter parameters for navigarion module. User is not able bypass such filter.
Goal Click on “Assigned to me” module from left navigation should only show active incidents opened today. User may add additional filters, but not able to reset initial ones.
Solution Go to System Definition > Modules and create a new record. Adding &sysparm_fixed_query= in Arguments field will do the trick.
All customizations made in tables, that extending sys_metadata are tracked to current UpdateSet. But sometimes we need to exclude some of them.
Goal You want some customizing not to be tracked to UpdateSet. For example, Catalog Items.
Solution Following solution is definitely not officially supported by ServiceNow, so you should really know what you are doing. Dictionary attribute update_synch of a table should be set to false.