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

Forum Posts

Resolved! Date/Time field: Set time to 00:00:00 always

Hello, I have a Date/time field [u_kickoff_start] in the Task [ticket] table that gets populated by the last Updated [sys_updated_on] based on some conditions. Requesting for a script to change the display in [u_kickoff_start] to show the time as 00:...

Desmo by Mega Guru
  • 3854 Views
  • 6 replies
  • 1 helpfuls

Validate JSON body

Hi All, I have below code in my scripted REST API. But in case if there is comma missing or some invalid format, system should generate error. How can I handle it? JSON.parse is not generating any error messages in try-catch blocks. (function process...

Geeky by Kilo Guru
  • 2006 Views
  • 4 replies
  • 0 helpfuls

How to test function in a script include?

Does anyone know how i can test a function within an script include using a background script? Function: getLibrarians: function(className) {// default return valuesvar librarians = null;var users = [];var groups = [];this.users = null;this.groups = ...

othomas1 by Kilo Guru
  • 6564 Views
  • 3 replies
  • 2 helpfuls

Asset Display name with Model display name

Hi, Need to write a Business rule where asset Display name should update with model display name for all the assets. Even when we create new assets. Below is the background script I have created, should I use insert and update After business rule on ...

Heisenberg by Tera Contributor
  • 2467 Views
  • 12 replies
  • 1 helpfuls

How do you rename the reference field column title/label?

Using Helsinki:1) You are in a list view and select 'Configure->List Layout'.2) You select an available list item that is a reference (example 'Assigned to') then click the 'Expand selected reference field'3) You select some field that is in there (e...

akaupisch by Kilo Guru
  • 2330 Views
  • 3 replies
  • 2 helpfuls

Resolved! Can you use arguments in a scripted filter?

Hi I'm using a script include in my filters so the format is: "Sys_ID is" -> javascript:myFunction();   However, when I try "Sys_ID is" -> javascript:myFunction(query) where query is an encoded query from a related list, it doesn't work. Does anyone ...

Justin1 by Kilo Expert
  • 1696 Views
  • 2 replies
  • 0 helpfuls

Resolved! Date/time field displaying GMT vs. local date/time

A newly created Date/Time field defaulting to an existing Date/Time field displays GMT vs. local time zone.  The default of the new field is set to "javascript:current.sys_created_on" but it inserts the date/time as GMT in the new field while sys_cre...

FredrikT by Kilo Sage
  • 3095 Views
  • 3 replies
  • 0 helpfuls

Resolved! Best Practice for Duplicating Fields on a Record

What is the best practice or preferred method of duplicating fields on the same record, when that additional field would be for information only? In other words, we don't want to actually store data for that field.  That would be a waste of resources...

find_real_file.png find_real_file.png find_real_file.png
dmullinax by Mega Guru
  • 5566 Views
  • 11 replies
  • 8 helpfuls