@unitmtechgmail-com 837 Reputation Active 1 week, 6 days ago Activity Profile Q&A Questions Answers Reputations Asked a question Below is the Code exploring some method of ArrayUtil // Array Utils var firstArray= ['Green','Brown','Red','Orange','Yellow','Orange']; var secondArray=['Purple','Black','Green','Blue','Orange'];... May 2, 2024 2 Asked a question Find out number of times same Value Appears in JavaScript Array ServiceNow findReqElementCount(5); // In function we are passing the parameter as 5, which says that we have to count the item 5 occurrence in an array. function findReqElementCount(value){... May 2, 2024 2 Asked a question Remove Specific item which occurs number of times in an Array var firstArray=[5,5,3,5,8,5,9,5,4,5,9,5]; for(var i=0;i<=firstArray.length;i++){ if(firstArray.indexOf(5)!=-1){ firstArray.splice(firstArray.indexOf(5),1);... May 2, 2024 2 Asked a question Use of nil() in ServiceNow.GlideElement - nil() Determines if the field is null, applicable only to the elements of glideRecord object. Returns true if the field is null or an empty string, false var glideRecord... April 12, 2024 2 Asked a question How to enable For text in search and what is the use of this for text? To enable the for text search, you will need to enable the text index for the table. To do that, 1. Open Dictionary (sys_dictionary) table 2. Search for record with filter as... April 11, 2024 2 Asked a question How to control record to opened in Virtual agent ServiceNow "sn_itsm_va.com.snc.itsm.virtualagent.portal_url" property. Unfortunately, this is not dynamic as the VA is not able to get users session information. Steps to resolve... April 9, 2024 2 Asked a question All Catalog Task variables displayed in a Notification ServiceNow (function runMailScript(current, template, email, email_action, event) { // Get Requested Item var reqitem = current.request_item; // Get Owned Variables... April 9, 2024 2 Asked a question Code to generates a virtual agent greeting message based on the time of day ServiceNowCode to generates a virtual agent greeting message based on the time of day ServiceNow(Good Morning, Good Afternoon , Good Evening) (function execute() { var getime = new GlideDateTime().getLocalTime().getByFormat('HH');... April 9, 2024 2 Received an upvote April 1, 2024 10 Asked a question Select Weekdays in the date field/Variable Servicenow Script Include : var WeekDay = Class.create(); WeekDay.prototype = Object.extendsObject(AbstractAjaxProcessor, { WorkDay: function() { var selected_date = this.getParameter("sysparm_date");... March 13, 2024 2 Asked a question Use of addExtraField() Method ServiceNowThe addExtraField() method allows you to query dot-walked fields in a single database request, rather than perform multiple queries per dot-walked element in a form or script ... March 6, 2024 2 Asked a question Get Parameter from URL with Glideajax to auto-populate variables value ServiceNowClient Script function onLoad() { //Type appropriate comment here, and begin script below var number = getParameterValue('number'); if (number... March 6, 2024 2 Asked a question Script Include Example - Get User Data CLINT SCRIPT : function onLoad() { //Type appropriate comment here, and begin script below var usrInfo = new GlideAjax('getuserInfo'); usrInfo.addParam('sysparm_name',... March 6, 2024 2 Asked a question Make attachment mandatory in service Portal via on submit catalog client script function onSubmit() { var condition = g_form.getValue('req_type);//Get the value of the catalog variable if (condition == 'add' || condition ==... March 4, 2024 2 Asked a question Create meeting and modify meeting subflow trigger with complex JSON Input ServiceNow.Create meeting and modify meeting subflow trigger from business rule with complex JSON Input ServiceNow. function executeRule(current, previous /*null when async*/ ) { if... February 29, 2024 2 Asked a question Validation to check end date should not be greater than start date+1 year ServiceNow function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } if(g_form.getValue("request_type")=="1"... February 23, 2024 2 Asked a question What are the different types of reports that can be generated in ServiceNow?1. List Reports: Description: List reports display a simple list of records based on specified criteria. Use Cases: Quick view of records matching specific conditions, such as incidents, changes,... January 3, 2024 2 Posted an answer script includeGo to "System Definition" > "Script Includes" in ServiceNow. Click on "New" to create a new Script Include. Copy and paste the above code into the Script field. Save the Script Include. //... January 3, 2024 5 Posted an answer Script IncludeGo to "System Definition" > "Script Includes" in ServiceNow. Click on "New" to create a new Script Include. Copy and paste the above code into the Script field. Save the Script Include. Script... January 3, 2024 5 Asked a question What is a cascade relationship in ServiceNow?In the context of a Configuration Management Database (CMDB), a cascade relationship typically refers to a type of relationship between configuration items (CIs) or configuration items and other entities... December 16, 2023 2 Load More