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

Forum Posts

Resolved! send value from business rule to client script

He lo every one, I want to send a sys_id of a reference field from a Business rule to a Client Script. For that i use the global variable SCRATCHPAD in business rule to fill in the value from the database into scratchpads property, then i user the sa...

Resolved! New button disappeared

Hi. For some reason, I can't create new incidents\custom requests on my table. Instead of the UI Actions that include New and Advance, I get this     Any ideas? I am trying to check ACL's and roles but no luck,

find_real_file.png
SC4 by Tera Expert
  • 2805 Views
  • 7 replies
  • 1 helpfuls

Show/Hide Form Section

Does anyone know how to Hide/Show a form section based on a field. I attempted to follow the example below from the wiki, but it did not work for me. See attached. function onChange(control, oldValue, newValue, isLoading) { //this example was run on ...

rachellesan by Tera Contributor
  • 10571 Views
  • 15 replies
  • 0 helpfuls

Resolved! Date validation in catalog client script?

Hello team, I have a requirement in change request if user selects the past planned date it should have to popup an alert message to choose the current or future date. It is working fine for almost all users with my old script, it fails when user cho...

find_real_file.png
gokulraj by Tera Expert
  • 5280 Views
  • 11 replies
  • 1 helpfuls

How to add DL in email notification

Hi All, I have a email notification which should be sent to a DL[abc@xyz.com]. but this email ID is not registered under any group in service now. Now if I add that email ID in email notification directly, will it work?   Regards, Lohitha K.

chinni by Tera Expert
  • 4135 Views
  • 4 replies
  • 3 helpfuls

Unable to use generateUrl function in Scoped Application

Hi, I have a requirement to create a hyperlink to a word "here" in a email script. The notification email script is present in a scoped application and is being used across other notifications.  I am using the below snippet, but however it is not cre...

Debanjana by Tera Contributor
  • 1899 Views
  • 1 replies
  • 0 helpfuls

Mailscript for Email Header and Footer

Hi,  I need to add an image as email header and footer for our customer. Do you have sample mailscript how will I call it to the email template? Appreciate help. Thanks. 

jxa7987 by Tera Expert
  • 1985 Views
  • 3 replies
  • 0 helpfuls

Resolved! Passing host variable in REST Message

Hi, I'm trying to solve an issue I am having with a REST message. The following is the REST Message configuration/setup: var hostName = 'test.hostname.com'; var request = new sn_ws.RESTMessageV2('System Information', 'POST SiteToken');  request.setSt...

swisstech08 by Mega Contributor
  • 2133 Views
  • 4 replies
  • 2 helpfuls

push data in to json object

need to push the data into json object and store it in a variable function executeRule(current, previous /*null when async*/) { var fields = current.getFields(); var sysid=current.sys_id; var json={}; var hits = []; var value=[]; var field=[...

find_real_file.png
rick48 by Tera Contributor
  • 9050 Views
  • 6 replies
  • 0 helpfuls