This message, related to the development of the theme, only displays on the localhost homepage to notify you of any important theme changes.


Version 1.1.0 - May 18, 2020

With this version, the theme has fully implemented static search using lunr.js. That being said, a few modifications were necessary to implement this feature.

To utilize this, or future version of Hugo Future Imperfect Slim, please make the following changes:

  1. Add the following to your config.toml before [params]:
...
disableLanguages = [""]

[outputs]
    home = ["html", "json"]

[params]
...
  1. Remove the underscore from all about and contact page file names: _index.md --> index.md

  2. Add layout = "about" or layout = "contact" to all of the files you just just adjusted the file names for.

While I realize this is inconvenient, I hope that it is worth it to you in the long run. Thanks for using the theme, and feel free to submit issues as needed.

Sam

Sam's ServiceNow adventures

A place where to share about ServiceNow platform and technologies

GlideQuery Cheat Sheet

an attempt to document GlideQuery functions and methods

Sam

6 minute read

This is a draft Cheat Sheet for the GlideQuery. Please see this post for a detailled introduction. This cheat sheet was build with elements gathered from presentations and blog posts and also from reading the script include. It may not be accurate, might evolve and all comments and corrections are welcome ! invoking GlideQuery In a similar way that GlideRecord, the table name is passed as a parameter: var myTable = new GlideQuery('table_name'); Cheat sheet Selections, insert, update get() Returns a single record by querying primary key key.

High order function in script include, accessing the context (this)

how to access this context when using high order functions in a ServiceNow script include.

Sam

5 minute read

In the Service-Now script includes (or in Javascript in general), the context of the this in not reachable when using high order function.

This might be obvious for some of you, but it was not for me and I struggled some time to achieve what I wanted in a clean manner. Hence this post.

Enable PlugIn

Using script to enable a PlugIn

Sam

1 minute read

This is a quick note about how to enable a PlugIn by script var pluginArr = ['com.sn_glidequery']; var pluginMgr= new GlideMultiPluginManagerWorker(); pluginMgr.setPluginIds(pluginArr ); pluginMgr.setProgressName("Plugin Installer"); pluginMgr.setBackground(true); pluginMgr.start(); Reference Ashby, NOW community - Activate plugin via script / automatically, accessed 2020 06 10

Recent posts

Categories

About

This blog is a personnal blog from Samuel Meylan about ServiceNow technologies and other business related topics.

Sam is a ServiceNow Senior Developper and technical consultant with more than 8 years of experience. He particularly like making integrations and solving complexes requirements.

He also enjoy discovering new and enhanced features shipped with each ServiceNow release.