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

Forum Posts

Resolved! How to use gs.getMessage() to get the string translated?

var ret = ' ';........if(counter_app == 0){   switch(counter_level){   case 0:   ret += "First level of approval "; // <------   how to get such string translated?   break;....   }   if     (when.indexOf('always') == -1)                 ret += '\(Dep...

hyperjam by Giga Contributor
  • 39367 Views
  • 11 replies
  • 15 helpfuls

Where is documentation for the SNC javascript object?

I feel like this is going to be one of those questions that has an obvious answer. I'm looking at the Business Rule: "request closure". In the Script field, the first statement is: var request = new SNC.Request(current); (presumably this creates a re...

adrianps by Kilo Expert
  • 7886 Views
  • 7 replies
  • 13 helpfuls

How to share many reports (in bulk)?

Hi guys, is there anyway you can share many reports to groups or users without having drill into each report and go to 'Sharing' i.e. ideally from a list view edit? Thanks.

jas101 by Tera Expert
  • 9647 Views
  • 9 replies
  • 12 helpfuls

Show list in modal from UI Page (for selection)

I am developing a UI Page.  The requirement is to add a button that allows the user to select a particular record from a table (in a popup).   Is there a solution for this that would show ServiceNow's list control in a modal, or do I have to create a...

Single Approval for Multiple RITMs in Order Guide

We have kind of a tricky request form to build.  Boiled down, it is essentially like this: First, they will select an environment from a list.  Some environments require an approval, others do not. Second, if an environment requires an approval, they...

jmiskey by Kilo Sage
  • 1551 Views
  • 2 replies
  • 0 helpfuls

Resolved! Using workflow scratchpad with a Multi Row Variable Set

Hello All, I have a complicated requirement that I am working through that I hope someone will help point me in the right direction.  Requirement: A user needs to be able to request several roles at a time. These roles are based on Application and lo...

isMemberOf() is not working in scoped applications?

I am getting below error when i am trying isMemberOf() from ACLjava.lang.RuntimeException: failed to coerce com.glide.script.fencing.ScopedGlideElement to desired type java.lang.StringCaused by error in Access Control: 'my_table_name' at line 5 var m...

nthumma by Giga Guru
  • 4322 Views
  • 2 replies
  • 7 helpfuls

Setting a Date-Time field with a GMT value

Hello all,I'm trying to write a business rule that manipulates a date/time string always provided to us in GMT, to then populate a date-time field on a record.I'm struggling to populate the field with the GMT time, ie it's always interpreted as the d...

Jamsta1912 by Tera Guru
  • 3595 Views
  • 5 replies
  • 0 helpfuls

Resolved! Script Include doesn't return a value for a Non-Admin user.

Hello people! I have a Script Include that returns a value to a Catalog Client Script and puts it in a field on the Portal, this works fine for admin users, but when I impersonate the real requester it doesn't work and the value returned is always nu...

Yanal by Giga Guru
  • 3599 Views
  • 6 replies
  • 2 helpfuls

Resolved! What are the equivalent variables in email scripts?

        What are the equivalent variables in email scripts?          Fields in sc_request table can be easily accessed from workflow or notification, but how to access them in email scripts? For example: In notification: ${sysapproval.description}, $...

Liuduan by Kilo Expert
  • 2474 Views
  • 14 replies
  • 2 helpfuls

Help with addJoinQuery()

Hi Team, I need to access object of the join table. Any help? For eg: if we see below example, how can i access fields of incident table? Also orderBy is not supposed to be working. When i am trying to print the order, it is coming as undefined:   //...

Resolved! glide.sys.time_format to include milliseconds???

Is there anyway to get milliseconds on the glide.sys.time_format, sys_properties property? Servicenow only shows that you can do HH or hh for hour, mm for minutes, and ss for seconds in their documentation https://docs.servicenow.com/bundle/newyork-...

find_real_file.png find_real_file.png find_real_file.png
Ryan74 by Tera Contributor
  • 3439 Views
  • 6 replies
  • 3 helpfuls

Resolved! How to show/hide custom widget for specific portals

Hi Community, I created one widget with body html to add security information on sc_cat_item of our front office portal. <div class="panel panel-primary"> <div class="panel-heading">${Security Informations}</div> <div class="panel-body"> ${Pleas...