Working Code

Asked a question
Restrict Specific Users from the Impersonation List in ServiceNow

In ServiceNow, there may be situations where you need to restrict certain users from appearing in the impersonation list. This feature can help maintain security and enforce organizational policies, ensuring...

4 days ago 2
Asked a question
Querying a Decision Table from a Client Script

Client Script: function onChange(control, oldValue, newValue, isLoading, isTemplate) {     if (isLoading || newValue === '') {         return;     }      var...

February 6, 2025 2
Asked a question
How to use gsftSubmit on Workspace ServiceNow

User GlideAjax Native View Code [apcode language="php"] function checkMandatoryFields() {      if (g_form.getValue('doa_type') == '' || g_form.getValue('doa_level')...

February 5, 2025 2
Asked a question
Core Features of Virtual Agent and What's New in the Xanadu Release

Core Features of Virtual Agent Natural Language Understanding (NLU): Detects user intent and processes queries using NLU models. Supports multi-language interactions. Out-of-the-Box Topics:...

January 9, 2025 2
Asked a question
How to install Virtual Agent in ServiceNow?

Step 1: Install Virtual Agent Plugins Prerequisite: Ensure you have admin access to your ServiceNow instance. Navigate to Plugins: Go to System Applications > All Available Applications > All....

January 9, 2025 2
Asked a question
Code replicate Export as Excel in incident from list view ServiceNow

[apcode language="php"] function exporttoExcel() {                                  var sysparm_rows = g_list.grandTotalRows;                                 var...

December 20, 2024 2
Asked a question
How to Returns the name of the user for whom the current cart is requested using CartJS

[apcode language="php"] var cart = new sn_sc.CartJS(); var userName = cart.getRequestedForDisplayName(); gs.info(userName);

December 20, 2024 2
Asked a question
How to get the cart details using CartJS ServiceNow

var cart=new sn_sc.CartJS();  console.log (cart.getCartDetails());

December 20, 2024 2
Asked a question
How to Deletes the current cart using CartJS ServiceNow

var cart = new sn_sc.CartJS();       cart.empty();

December 20, 2024 2
Asked a question
How to add multiple items to the cart using CartJS ServiceNow

for (i = 0; i < 3; i++) { var cart = new sn_sc.CartJS(); var item = { 'sysparm_id': '0d08837237153000158bbfc8bc2334e', 'sysparm_quantity': '1',...

December 20, 2024 2
Asked a question
Post a picture to an image field through REST ServiceNow

https://myInstance.service-now.com/api/now/table/ecc_queue This is a protected table, so I will need to use Basic Authentication to authenticate in the request. HTTP Headers I am also going to send two...

December 18, 2024 2
Asked a question
Create styled content for banners, block/announcements, or video employee center servicenow

Procedure Navigate to Content Publishing > Content Library > Create New. Select Portal under the Select the Platform column. Select Styled content under the Choose a content...

December 16, 2024 2
Asked a question
Request Body format to make a Service Catalog REST API call for 'Buy Item' with variables

POST https://<instance_name>.service-now.com/api/sn_sc/servicecatalog/items/<sys_id>/order_now { "sysparm_quantity": "1", "variables": { "requested_for":"<sys_id_of_user>", "short_description":"short...

December 11, 2024 2
Asked a question
Migrating from BMC Remedy to ServiceNow involves several stages

1. Planning and Preparation a. Define Objectives Identify the goals of migration (e.g., enhanced functionality, better user experience). Document the scope, including which modules and data will be...

November 26, 2024 2
Asked a question
Common Services Data Model (CSDM)-related interview questions and answers

1. What is the Common Services Data Model (CSDM) in ServiceNow? Answer: The Common Services Data Model (CSDM) is a framework within ServiceNow that provides a standardized way to model and manage services,...

October 15, 2024 2
Asked a question
Common Services Data Model (CSDM) in ServiceNow: A Detailed Overview

The Common Services Data Model (CSDM) is a framework within ServiceNow designed to standardize the way data is structured and organized in the Configuration Management Database (CMDB). It provides a blueprint...

October 15, 2024 2
Asked a question
Remove comma-separated values from two fields ServiceNow

To subtract (remove) values from one comma-separated string (the "big" string) using another comma-separated string (the "small" string) in ServiceNow var bigString = "a,b,c,d,e";...

October 14, 2024 2
Posted an answer
How can I retrieve the total number of incidents categorized by state in ServiceNow

Nice one. Great Job!!

October 3, 2024 5
Asked a question
Custom profile picture page in ServiceNow

HTML Code <!DOCTYPE html> <html> <head> <title>Workingcode.in</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,...

October 2, 2024 2
Asked a question
E-commerce website within the ServiceNow Service Portal

HTML Code <!DOCTYPE html> <html> <head> <title>workingcode.CSS Template</title> <meta charset="UTF-8"> <meta name="viewport"...

October 2, 2024 2
Load More
Scroll to top