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

Forum Posts

Resolved! how to call variable value from one function to other function

Below script from executeSample function i need to take date2  variable value and pass it to addSchedule2 function , please help me your suggestions. gs.include('DurationCalculator');executeSample();function executeSample(){ var dc = new DurationCalc...

divya123 by Giga Contributor
  • 5245 Views
  • 4 replies
  • 0 helpfuls

Re-trigger the completed survey

Here we go, the scenario is survey will be sent to users once the incident is archived and user submits the survey response. But, due to human errors some users will get back to us to modify/update the value of the their submitted response. For the a...

mohan91 by Mega Expert
  • 3542 Views
  • 4 replies
  • 2 helpfuls

file is not getting created in midserver in export folder

Hi Team, I am creating an export set to place a file in midserver. i created export definition and export set. when i clicked on export data, that status got stuck at 66% it did not even completed also.. and when i checked the export histories - i fo...

ybhavani by Kilo Contributor
  • 2283 Views
  • 6 replies
  • 0 helpfuls

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
  • 40128 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
  • 8429 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
  • 10219 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
  • 1893 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...

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
  • 3988 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
  • 4138 Views
  • 6 replies
  • 2 helpfuls