We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Developer forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Resolved! Overriding SNC Function

Hello All,  I am looking to edit the Incident Script Include that calls the IncidentSNC script include. I would like to edit the reopen function in the IncidentSNC script include. I want to clear the assigned to user of the reopened incident. I know ...

Resolved! Display only the date from a datetime field

Hello! I have a notification running on the sc_task table. I want to display the due date field from the RITM to the notification.I can do this by dot walk. However, I only want to display the date section (bold part from the sample) of the value. Du...

ceraulo by Mega Guru
  • 3873 Views
  • 2 replies
  • 2 helpfuls

GlideV2ChartingIncludesSP.js usage in Service Portal

Hi, i have a question regarding the usage of GlideV2ChartingIncludesSP.js. I was trying to embed custom reports in the service portal by using the 'embedReportByParams function but the reports seem not to render properly. It does work when i use the ...

Agmal by Kilo Contributor
  • 2249 Views
  • 4 replies
  • 2 helpfuls

Resolved! Compare dates in scheduled jobs

Hello! I have a scheduled job that triggers an event to send a notification. It should trigger when the due date is one day from today aka tomorrow. The script in my scheduled job is var gr = new GlideRecord("sc_task"); gr.addEncodedQuery('active=tru...

ceraulo by Mega Guru
  • 2091 Views
  • 4 replies
  • 3 helpfuls

Resolved! Fields validation RegEx onChange client script

Hi All, I have requirement to validate the number entered in a field . For this I created Onchange client script and below RegEx is not working .It is not accepting the number even I give in below format .  Please guide.  Number format should be - 12...

Mrman by Tera Guru
  • 3551 Views
  • 3 replies
  • 2 helpfuls

Resolved! Scheduled Report Conditional Script Problem

Good morning community, I am seeing something strange on some scheduled reports using conditional scripts to determine which days to run (weekdays and fridays being the important ones). I did the searching and saw the notice about using js and not gl...

jlaps by Kilo Sage
  • 2347 Views
  • 5 replies
  • 1 helpfuls

JSON object in Scoped Application

Hello,Working on a Helsinki instance,var json = new JSON();Works fine in the Global Scope but crashes within an Scoped Application:Invalid object in scoped script: org.mozilla.javascript.gen.sys_script_include_04cf1a2f0fd2020094f3c09ce1050eba_905@1ca...

hmartind by Kilo Expert
  • 6605 Views
  • 5 replies
  • 3 helpfuls

Hide Work Notes in Activity Log only for Non-ITIL users

Hi We have a requirement like this, We want to hide the Work notes field in the activity log only for Non ITIL Users , While the Additional comments will still be visible for them, Is this possible ? What does the Lock icon on the Work notes in Activ...

Resolved! Auto populate Assignment group of logged in user

Hi , I want the Assignment group to show logged-in users groups currently I have a script that shows selected users group what modifications to be done to the script and what should be the reference qualifier. Kindly help me  

find_real_file.png
Appu by Tera Guru
  • 2349 Views
  • 2 replies
  • 2 helpfuls

script for changing letter cases

I am wondering if anyone has a script that they would not mind sharing that I can run that will go and make sure that all of the CIs within the CMDB are all capital letters. Right now there is a combination of lower and upper cased CIs and I am not s...

dsmit by Kilo Contributor
  • 4931 Views
  • 5 replies
  • 1 helpfuls

Resolved! How to convert sysid to display value in the catalog form

Hi , I have a client script on the catalog form . There is a field called 'division' in the form which should autopopulate the value of 'division' field also present in the user table  according to the  requested for. I have a script include where i ...

Naresh291 by Tera Contributor
  • 2509 Views
  • 5 replies
  • 0 helpfuls