Servicenow

Add to Visual Task Board – Any record (List choice) (multi-card)

In previous articles, I explored the possibility of adding any record to a Visual Task Board from a form and from a list. Where do we go from here? What about selecting multiple records from a list and adding a card for each one of them? The idea We can use Personal tasks [vtb_task] as …

Add to Visual Task Board – Any record (List choice) (multi-card) Read More »

Debug GlideAjax / client callable script include

In order to debug a GlideAjax Script Include, we have to trigger the code from the server side. We can run it the same way as we do with any other Script Include: using the background script. We can simply override the getParameter function defined in AbstractAjaxProcessor, so that it uses some static values instead …

Debug GlideAjax / client callable script include Read More »

Import XML: unintended consequences

The XML import process directly inserts records into the target table. During the import the system: – Ignores any business rules that normally apply to the table. – Does not provide any opportunity to transform incoming data. – Automatically matches a reference field’s display value to the local Sys ID for some tables. If you need to validate or transform …

Import XML: unintended consequences Read More »

Override annotations

Annotation preferences for each user are stored as user preferences with the name “glide.ui.show_annotations”. You can override that configuration and change the visibility with the following code on the client side: The user preference works at the platform level, and you might want to alter this behaviour in a particular form. This is an undocumented …

Override annotations Read More »

Remote table + GlideQuery POC: most used items

Requirements Catalog Items and Record Producer usage is stored in two different tables Catalog Items: sc_req_item Record Producers: sc_item_produced_record We need to merge the data from both tables and show it in a Report Solution Let’s combine two cool features from recent releases: Remote tables GlideQuery Create a new remote table (System Definition → Remote …

Remote table + GlideQuery POC: most used items Read More »