Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

Resolved! Custom table script field execution inside script include

Hi, I've been trying to get GlideScopedEvaluator() to work, by injecting script from a custom script field into a script include. However, nothing works, except eval(), which should not be used for obvious reasons. What I'm trying to do:1. inbound em...

Resolved! How to get table_sys_id or cat_item from sys_attachment table

I've created an "after insert" business rule on sys_attachment table and I need to take the sys_id of the table or cat_item to check from where an attachment had been sent(from each catalog item). I've tried with current.table_sys_id but it gives me ...

andreea4 by Kilo Explorer
  • 5600 Views
  • 4 replies
  • 0 helpfuls

Problem to convert sys_id of reference field into string

Hello everyone,my goal is to display the cost center of the current requested for automatically in the Service Portal.Therefore, I map the field cost_centers_clock (reference field) with the cost_center field from the user record in a client script: ...

Matki_0-1667553498522.png
Matki by Tera Contributor
  • 1830 Views
  • 6 replies
  • 0 helpfuls

Display value for URL in List View / Report

Hello, I have been asked by a process owner to add a field to Project, which, when clicked from a report, would open a window of all tasks under that project. I have it figured out, but it's not pretty.  What I did was add a calculated field with the...

garyopela by ServiceNow Employee
  • 6351 Views
  • 11 replies
  • 1 helpfuls

Resolved! Converting to date format

While creating a transform map I wanted to create a transform script which accepts date as a string (20181025) and convert that to a date format in ServiceNow.

Misgun by Tera Contributor
  • 6189 Views
  • 2 replies
  • 2 helpfuls

Pass parent RITM values to child RITm

Hello All, Good day! I have one requirement in which i have to trigger child RITM based upon parent RITM variable selection. I have done that through script. Now in Parent RITM, there is field caller Site ID. I have to fetch value associated with Sit...

Sunil31 by Tera Expert
  • 1118 Views
  • 2 replies
  • 0 helpfuls

SLA per Assigned Group

Hello everybody,I posted something similar on another thread (that was not answered), now what I am looking for is more a brainstorm regarding a question:As I said, there are some requirements regarding Incident SLAs and the groups involved on the so...

Resolved! Calling UI Macro from Client Script

How can I call UI macros from client scripts?When I call UI Macro, I get a console error.I want to call it from a client script, not a catalog client script.

miyu by Tera Guru
  • 3539 Views
  • 8 replies
  • 1 helpfuls

creating an incident using Scripted rest Api

Hi community, I'm creating an incident using rest API by integrating servicenow with hackerone, I was able to map few fields but few fields like assignment group and configuration item needs to be hard coded can some one please help me get this wowk ...

Resolved! Comments to be added when record is approved

Hi,How to write a script so that when an approver approves the request, the comments or worknotes of the table should be populated with the info that "The request has been approved by xyz user"?In the change request table, we have a field 'test' that...

Pranavi2 by Tera Contributor
  • 3189 Views
  • 4 replies
  • 3 helpfuls