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

Forum Posts

Log entire object (unwrap nested JSON)

I am designing a catalog item and would like to know what the entire object of "current" looks like. Right now, I am using  gs.info(JSON.stringify(current)); However, the result would look something like this  { ... "variables": { "a":...

Steve56 by ServiceNow Employee
  • 3248 Views
  • 6 replies
  • 3 helpfuls

javascript error on edge console

Hi All, I have encountered error related to "js_includes_sp_libs.jsx" when I click the "update" button on an application which is to submit user input data. I have attached the error details in this question. May someone help me on this? Than you. Be...

GUN by Giga Contributor
  • 1407 Views
  • 4 replies
  • 1 helpfuls

DOM manipulation alternative for Catalog Client Script

After removing iFrame from catalog items and changing all the UI types to "All" on catalog client scripts, there are a bunch of DOM manipulation that is not supported anymore. Is there a similar method to getElementById of an button and change its st...

Lucy17 by Kilo Contributor
  • 4191 Views
  • 6 replies
  • 1 helpfuls

Hide Variable Column From Multi-Row Variable on Service Portal

I have a variable in a multi-row variable set. I do not want the variable name to appear in the columns that are displayed on the service portal:   I have set the variable to "Hidden" and it the column is still there. I have set it to non visible vi...

find_real_file.png
JJG2 by Kilo Explorer
  • 6752 Views
  • 5 replies
  • 5 helpfuls

Resolved! Using GlideQuery() to query a table and return values

Hello. We currently have a requirement that requesters select a hardware asset in a reference list on a catalog item. At a certain point in the flow, that catalog item and other information is passed to a script include. The script include should rec...

jhuggins by Tera Contributor
  • 3496 Views
  • 9 replies
  • 3 helpfuls

Resolved! Why can't I edit a client script?

Hi, I'm brand new to serviceNow (but not new to Service Management catalog development).   I'm taking over some work on a scoped app from someone else.  I'm viewing the client scripts in Studio, but when I click into the script and try to type, nothi...

find_real_file.png

Resolved! Unable to set JSON object in script include

Please see below script.  Even though I am setting values for the object, the final statement shows it is missing. Is it correct way to set JSON object? If not then what is wrong? var closeOutArray = []; var closeOutObject = { "orderCloseOut": { ...

TT3 by Kilo Guru
  • 1491 Views
  • 5 replies
  • 2 helpfuls

Http 400 THE REQUEST URI DOES NOT MATCH THE APIS

Hello, When trying to do search, with automation to see if ticket has been created before and in open status with REST API, incident ticket with a jobname that has a # in the name.  (like ISP00#B.  This only happens with these type jobnames, all othe...

RandyK by Mega Contributor
  • 1609 Views
  • 2 replies
  • 0 helpfuls

Resolved! How to get the CI class name through REST API

We have an integration pulling CIs from the cmdb_ci table and need the class name rather than the actual table which is returned when you get the value for the cmdb_ci.sys_class_name field. Curious how to pull the class name (not table name) through ...