Skip to content

Instantly share code, notes, and snippets.

View kunalkhatri's full-sized avatar

Kunal Khatri kunalkhatri

View GitHub Profile
@kunalkhatri
kunalkhatri / kanban.md
Created August 14, 2026 09:51
Using the Kanban Board Component in UI Builder

Using the Kanban Board Component in UI Builder

Disclaimer: This article was written by an LLM. All the underlying content — configuration steps, scripts, and reference material — was carefully collected and verified by Kunal Khatri.

This article is a companion write-up to our video walkthrough on building a Kanban board for Incidents in UI Builder (Next Experience). It documents, end to end, the configuration steps we performed on screen and includes the exact client scripts we used, so you can reproduce the same board - lanes, cards, styling, lane footers, and the "Add Card" button - in your own instance.

It is meant as an addendum to two excellent ServiceNow Community articles on the same component, and two "You & I Builder Live" sessions that cover the component interactively. Links to all four are in Further Reading at the end.

What we built

@kunalkhatri
kunalkhatri / copy_specific_attachment.js
Created March 20, 2025 06:55
ServiceNow : Copy specific Attachment from one record to another
var CopyAtttachmentUtils = Class.create();
CopyAtttachmentUtils.prototype = {
initialize: function() {
},
copySpecificAttachment : function (donorAttachmentID, recipientTable, recipientID) {
var grNewAttachment;
var attDataRecord;
var newDocRecord;
var grAttachment = new GlideRecord('sys_attachment');
if (grAttachment.get(donorAttachmentID)) {