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

Forum Posts

Resolved! URL Length Limitation in Menu Item(Istanbul)

I m trying to add the itss URL (catalog item) to the menu item.. But the URL is getting cut off due to the limit in the length.Here are the options which i chose for Menu itemRedirectTo --> Specified URLURL --> Provided the ITSS url but its getting c...

Resolved! client script and ajax call

HI,Im trying to get display value of a reference field. I know of the method g_form.getDisplayBox(), but I am trying to do it from ajax call.I am only able to get the sys id of the reference field.I tried the following but no luck.Client side:ga.addP...

amit98971223 by Kilo Contributor
  • 12822 Views
  • 4 replies
  • 2 helpfuls

Resolved! XMLHelper in GlideAjax

Hello everyone,I am aware of how to use GlideAjax to return JSON, but for my own knowledge I am working on building out the same scripts just returning XML strings.   In my client script I need to convert that string to an object so that I can perfor...

Sean Duhaime by Giga Contributor
  • 1851 Views
  • 5 replies
  • 0 helpfuls

Resolved! Set default choice through catalog client script

Hello experts, I'm new to coding, and trying to accomplish a task, not sure how this can be done. I have this If/else statement that i'm checking to see set choice list for the variable, which works as intended. However, I want to set choices dependi...

Kim Jenson by Kilo Contributor
  • 2027 Views
  • 7 replies
  • 1 helpfuls

Resolved! Restrict 'Export Directly from URL'

Is there any way to restrict the ability to 'Export Directly from URL' without affecting read access for a user?Export Directly from URL:https://docs.servicenow.com/bundle/istanbul-servicenow-platform/page/administer/exporting-data/task/t_ExportDirec...

matt_kean by Tera Guru
  • 3216 Views
  • 5 replies
  • 1 helpfuls

Additional approvers script

I have a variable on the catalog form; Business Unit CFO Approver (value is cfo_approver).   It's a reference to a table that has a list of the CFO's.   In my workflow, I want to include the CFO as an approver.   In a Approval - User activity, I used...

chrisdamico by Kilo Explorer
  • 4246 Views
  • 13 replies
  • 0 helpfuls

Resolved! Setting Text Index to true

I'm trying to activate the text index for the "Asset Tag" column under Configuration Item table. The end goal is to allow my staff to use the global search function using our asset tag number.However in the Dictionary Entry page I am unable to change...

jonjon2_0 by Kilo Contributor
  • 2514 Views
  • 4 replies
  • 1 helpfuls

Resolved! Jelly - GlideRecord Query Not working

This is my current script:<?xml version="1.0" encoding="utf-8" ?><j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="jelly:core" xmlns:g2="glide">   <g2:evaluate var="jvar_position_id" jelly="true">   var cart = jelly.sysparm_cart_na...

Resolved! Get Display Value and in mail script

Hi all,I'm using this mail script to capture variables for a catalog item to be sent in a notification:printVars(); function printVars() {       template.print('<b>Catering Request Details</b>\n');       var cv = new GlideRecord('sc_item_option_mto...

jimpaige by Giga Contributor
  • 5835 Views
  • 8 replies
  • 1 helpfuls

Resolved! Encoded Query string for company and child companies

Hi All,I have the below query for a simple list widget filter on the Service Portal to show all incidents that have been raised by the users company.   However I need this list to also show any incidents that have been created by a child company if t...

Sam Ogden by Tera Guru
  • 3737 Views
  • 23 replies
  • 0 helpfuls

Resolved! Using schedule to run job only at certain times

I'm trying to create a scheduled job that will run only at certain times.  In this case, I want it only to run weekdays, during business hours, and not on holidays.  All this job does is fire off an event that I can use to trigger a notification.I'...

danenglish by Giga Expert
  • 11365 Views
  • 20 replies
  • 5 helpfuls

Resolved! Regex Assistance Needed

I need some help converting various phone number formats, all US-based at this point, into simple 10 digit format.   I'm dealing with all kinds of variations in the phone numbers and can't get the regex string correct to convert whatever value is inp...