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

Forum Posts

getActionName()

Is there a way to determine this? I found a small "script" in the wiki that generates an output. I just wanted to know if there's a naming convention in this.e.g. my table is namesomething_tasksand i want to simulate the same behaviour I have in my i...

Krischan by Giga Guru
  • 4593 Views
  • 3 replies
  • 0 helpfuls

Need help with "sc req item events" Business Rule

We need the "sc_req_item.inserted" event to also fire if the "Request.Requested_For", changes. So, we need it to fire when the Item is requested, like it does now but we also need it to fire if the request.requested_for changes to someone else, so th...

alhicks by Tera Guru
  • 1916 Views
  • 7 replies
  • 1 helpfuls

Conditionally skipping records in a Transform Map script.

I am importing records from an Excel spread sheet. I need to be able to conditionally skip records. In my transform map script, I do something very similar to the following: var incident = new GlideRecord("incident");incident.addQuery("", source.fiel...

dstuart by Kilo Expert
  • 5291 Views
  • 5 replies
  • 1 helpfuls

Security: determinig if current user can read a specific record

Hi,I our scenario we are trying to restrict supporter access to certain incidents. The idea is that supporters may only read incidents that have a "service" assigned (a reference field on the incident to a custom table) they are able to read. The cus...

ctu1 by Giga Expert
  • 5394 Views
  • 3 replies
  • 0 helpfuls

CTASK Questions

Hello,I'm a bit new to Service Now forms development so this may be a bit of a rookie question.We have a process where once a user creates a new Change Record and Saves it or submits it for approval, they can then create Change Task records that can ...

mdidrikson by Kilo Contributor
  • 9135 Views
  • 17 replies
  • 0 helpfuls

UI page - HTML section - difference between <g> and <g2>

Hi,Just trying to understand the difference between <g>and <g2>In a UI page - HTML section I have the following :// This is treated as code and returns the results<g:evaluate var="mynames" jelly="true"> var gr= new GlideRecord('u_platfs'); gr.quer...

jarrejo by Kilo Contributor
  • 4718 Views
  • 2 replies
  • 3 helpfuls

Replace \${sysapproval.URI_REF} with the word "here"

Using [Click ${sysapproval.URI_REF} to launch Service-now and go directly to this Request for Change.] results in the sentence:[Click CHGxxxxxxx to launch Service-now and go directly to this Request for Change.] where CHGxxxxxxx is the Change Request...

Sharee1 by Kilo Contributor
  • 1257 Views
  • 2 replies
  • 1 helpfuls

Call Script Include from UI Page

I've read on the wiki that you can call Script Includes from the HTML section of an UI page. http://wiki.service-now.com/index.php?title=UI_PagesBut when I try the following script:-- begin of script--gs.include("MyInclude"); var foo = new MyInclude(...

hloredo by Kilo Explorer
  • 3129 Views
  • 4 replies
  • 0 helpfuls

Wrong Search Result match count in Global Search - ESS

we have a global search which searches from Catalog and Knowledge tables. but it displays the incorrect number of matching results on ESS page.When it says, 11 results found, it displays only 7 results. So the Count of found results and actual displa...

Ruchi19 by Mega Contributor
  • 1491 Views
  • 10 replies
  • 0 helpfuls

Client Script to remove choice list option

I'm trying to remove a field option from a choice list using a client script with g_form.removeOption. I don't want anyone that doesn't have the "ewr_manager" role to have the option to closed a task. I'm using the script below that I found on the wi...

Rick Mann by Tera Expert
  • 12114 Views
  • 2 replies
  • 2 helpfuls

Adding days to a date in a client script

I have 2 date fields on a catalog item. In one date field, the user can enter or select a date. The other date field I am trying to populate by adding 30 days to the first date field using an onchange catalog client script. So to be clear, if date 1 ...

rdingus by Kilo Contributor
  • 4698 Views
  • 1 replies
  • 0 helpfuls

Published Report URL - where is it?

Recently I have been working with published reports. I have noticed and become frustrated with the fact that the published report URL only gets displayed immediately after you publish the report. Following that, good luck on finding it somewhere. You...

MB26 by ServiceNow Employee
  • 3826 Views
  • 11 replies
  • 0 helpfuls

Wizard Client Script

Hello everyone,I created a wizard that either create an incident or launch a service catalog ordering process depending on the value of a variable.However, there are 3 other variables that the user has to fill and I want to recover them in a Wizard C...