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! Linting our code?

Hi all, I'm trying to integrate Servicenow with a linting tool such as eslint or jslint, to enforce standard and custom best practices.I can see Servicenow embeds Code mirror, which has an eslint plugin. Is there a documented or undocumented way to a...

Syvo by Tera Guru
  • 3600 Views
  • 5 replies
  • 7 helpfuls

Resolved! Need help on oAuth token which is getting expire

Hi,   currently i am working on integration with oAuth configuration and everything is working fine.    Now i see a message "OAuth Refresh token is available and will expire at 2019-11-24 17:12:29."  Can anyone please help me how to make auto refresh...

find_real_file.png

Resolved! CMDB Experts

If I open a Configuration Item, in the middle section there is a plus (+) sign that opens a Formatter, CI Relations. This formatter uses UI Macro ui_ng_relation_formatter. The XML in this macro uses template = ci_relations.xml or = ng_ci_relations.xm...

ggg by Giga Guru
  • 1543 Views
  • 3 replies
  • 2 helpfuls

Resolved! gs.getUser().getPreference() does NOT return the "value"

According to This Docs Page, it's saying that gs.getUser().getPreference() returns a "String".  It does not. So in a widget, I have the following code in the Server Script part: and this in my Client Script: I have a user preference on the sys_user_...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png
xiaix by Tera Guru
  • 7277 Views
  • 10 replies
  • 2 helpfuls

Resolved! Background Script to update Date Fields

Hi all,   I have to update some records in Change table i.e i have to set work start with created date , work end with created +30 seconds . I have written like below but not working Can you please help var gr= new GlideRecord('change_request');gr.ad...

Community Alums by Community Alums  
  • 11686 Views
  • 17 replies
  • 9 helpfuls

Resolved! Redirect from a Script Includes?

Hi, I have a script includes that calls a UI action. The script includes and UI action together create a knowledge article. Once the article is created, I would like the knowledge article to be created. Instead, it's just reloading the form of the pa...

Sandy7 by Tera Expert
  • 6299 Views
  • 3 replies
  • 4 helpfuls

Resolved! Getting UI Page List Collector value

Hi there,  I am trying to get the values from a List Collector that I have coded on a UI Page so that I can set these values into a List Collector variable that I have created on the Change Request form. However, whenever I try to get the value of th...

How To Determine Active Nodes

I know I can find the information about instance cluster nodes in the sys_cluster_state table. However, how do I recognize which nodes are actually active? By active I mean nodes that serve user or API requests. Some of the nodes are in the DRC locat...

pavelmuller by Tera Contributor
  • 7502 Views
  • 1 replies
  • 1 helpfuls

Resolved! How to autopopulate a field based on two other fields ?

  First in that table field we select a table let's say it is incident table  Second, in the column field we will only be shown the fields for that incident table  and we select one out of those  columns Third, this field will show all the records f...

find_real_file.png
Rohan37 by Giga Expert
  • 3690 Views
  • 6 replies
  • 0 helpfuls

Resolved! how to use on change client script to make fields disabled?

hi  I have one form where I have one category  drop down field with 3 options: category: america , asia, london now based on this category i need to disabled fields  if i select america only my location field should be changeable (drop down field)if ...