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

Forum Posts

Create Template from Script

Hi,Does anyone know if there is anyway that I can create a template "sys_template" from a business rule populating the template field using values from a from on a table?I have created an "Event Management" Table with an Event Task table. Sometimes e...

Joining CMDB CI and Audit tables via sys_id and documentkey

Hi all,I am trying to create a database view. In theory it should be simple. Table A is the cmdb_ci table, table B is sys_audit table. I would like to produce a view where it lists the cmdb_ci items with their corresponding audit activities (field na...

AdityaTW by Mega Contributor
  • 3997 Views
  • 7 replies
  • 0 helpfuls

Set font color in a script?

I am displaying the Caller's phone number on the incident form and setting it to read-only through a script. The script displays the phone number field only if it contains a value, and uses setReadOnly() to set it to read-only. The problem I am havin...

jgerckens by Kilo Explorer
  • 4575 Views
  • 12 replies
  • 0 helpfuls

Reporting - setting thresholds

I have a report that I'd like to run on the number of incidents of a certain template showing the count by user. I currently have this set up as a bar chart, and then it shows a list below with all of the data. I have about 15 users with 2+ incidents...

GlideList and Transform Map

Hello,I am trying to set up a Transform Map to import data into a Glide List field. The filed is use to store platform information (Windows 7, Windows 8, etc.).I have a set of four records I am trying to import from a spreadsheet:Name PlatformCLV MAI...

Get a list of incidents

I'm just getting started with servicenow integrations and c-sharp. I've been working in c-sharp for a while, but don't think i'd call myself an expert. I tend to start small and work up so for my first task, I wanted to create an app that would retur...

Deep link URLs

Hi,We are looking to generate email links that take users direct to tickets and applications via a CMS interface.. We've not been able to find a URL format that works...i.e.https://myinstance.service-now.com/incident.do?sys_id=6dd430ff3067d4005fe39de...

ablakey by Kilo Explorer
  • 9181 Views
  • 12 replies
  • 0 helpfuls

How to generate full name for Hierarchical object

Hi,I found an interesting Business Rules in ServiceNow to generate the full name for a Location.BR : Location - generate full name var r = new Packages.com.glide.glideobject.HierarchicalReference(); r.generate(current); I would like to do the same t...

smarti37 by Kilo Sage
  • 7733 Views
  • 4 replies
  • 4 helpfuls

How to calculate the approval Duration?

I want to calculate how long did it take for an approval to approve the request?Based on that field, we need to do reporting. please help how to calculate the duration?

Ruchi19 by Mega Contributor
  • 5101 Views
  • 6 replies
  • 1 helpfuls

Field Messages

Hi guys,We are trying to display a message on a field in the incident form (the time_worked field)I have created a Client script with the following script:function onLoad() { g_form.showFieldMsg('time_worked','Please dont forget to fill out your time...

germc by Giga Expert
  • 4276 Views
  • 2 replies
  • 1 helpfuls

Resolved! Create multiple incidents from single record producer?

Good morning All,I have a request to create a daily check list for the infrastucture team to track proactive efforts. I built a straight forward record producers that mearly requires a click of the submit button if all is well. If errors, warning, or...

wbmore by Kilo Expert
  • 3105 Views
  • 5 replies
  • 0 helpfuls