Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

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

Forum Posts

Resolved! How to make variable visible only on specified task

Hello All, I have a requirement where a particular variable should only be visible on the particular task for suppose after the submission of the catalog item A task is generated once the state of task A is completed task B is generated where I need ...

Sai Akhil by Tera Contributor
  • 2939 Views
  • 3 replies
  • 1 helpfuls

Resolved! Get Column Label Names for Incident Table with Rest API

How do I query the rest API for Column Label Names?  I can query one incident to get all the columns like this. https://myDev.service-now.com/api/now/v1/table/incident?sysparm_limit=1   But I need to get all the labels for each of the columns

find_real_file.png find_real_file.png
Tim McFadden by Kilo Contributor
  • 10187 Views
  • 19 replies
  • 7 helpfuls

Resolved! JSON.stringify not working in portal client script

I have a client script running within a portal widget which calls JSON.stringify to convert a javascript array to a JSON string. When the call is finished an empty string is returned. It generates an empty JSON string of '[[]]'. Shouldn't JSON.string...

Resolved! Adding field icon in script

I'm using the following code in a UI Policy to add a gold background color to my Contact field on my case form, when a certain value (TRUE) is set on a field in the Contact table. This is working successfully. However, I'd like to add an icon instead...

find_real_file.png
MStritt by Tera Guru
  • 5001 Views
  • 15 replies
  • 2 helpfuls

Resolved! Client script for checking special characters in a field

I have a requirement to validate a field which should not have the following characters ' @ , . / \ ' . I am using the following script : function onChange(control, oldValue, newValue, isLoading) { if (isLoading || newValue == '') { return; } var spe...

AmritaT by Tera Expert
  • 2891 Views
  • 2 replies
  • 0 helpfuls

Resolved! Is there REST API to get a list of configuration items with details

My ServiceNow instance is in New York version, but we expect customers will use other versions too. I am trying to get back a list of configuration items with details in each item using REST API. From my REST API Explorer, I use this REST API: GET ht...

Mei1 by Tera Contributor
  • 10280 Views
  • 2 replies
  • 2 helpfuls

Resolved! Clear the value while adding to Add to cart

Hello All,I need to clear the of the catalog form while clicking on add to cart.I wrote a script in on submit to clear the value.But it will not store in the table.Can you please suggest a solution for this?Thanks

salu by Mega Guru
  • 3448 Views
  • 8 replies
  • 4 helpfuls

Resolved! How to loop through a table?

How do I loop through a table, I want to get specific data from a table based on a condition and put it into an array.

zaryabro1 by Giga Contributor
  • 3511 Views
  • 9 replies
  • 0 helpfuls

How to split using backslash (\)

Hi All,   I want to split the string using a backslash (\)  and i need value after the backslash  (\) but I am not getting proper output Expected output  ==   "_DJ_Ima_KPI-Rap" var group = "GROUP\_DJ_Ima_KPI-Rap"; var n = group.split("\"); gs.log(n[0...

ramesh_r by Giga Sage
  • 7051 Views
  • 10 replies
  • 2 helpfuls