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 Solution Let’s combine two cool features from recent releases: Create a new remote table (System Definition → Remote Tables → Tables) and add fields: Name, Type, Count Create remote table definition (System Definition → Remote Tables → Definitions) and set the cache to 1 hour (3600 seconds). We don’t need real-time data. This is

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

Agent Workspace: HTML Comments and Work notes

Have you ever got the requirement of adding HTML Comments and Work notes to the Task form? I’ve seen that requirement a few times and I haven’t found the perfect solution yet. Probably, there isn’t and it’s better to decline the idea immediately. But in the Agent Workspace, you just need to set a System Property: glide.ui.journal.use_html

Agent Workspace: HTML Comments and Work notes Read More »

Copy to clipboard

Have you ever had the need to create a link or button to copy some text from a form or a list to the clipboard? ServiceNow does that out of the box in a few places, so there is no need to reinvent the wheel! Let’s have a look at the UI Action “Copy sys_id”: Pretty simple, right?

Copy to clipboard Read More »