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

Forum Posts

Resolved! Set Variable to read only based on role

Hello all, I have a catalog item and I would to set some of the variables to read only based on the login user role. I created the following OnLoad client script to set the variable to read only if the login user does not has "hari_admin" role. The s...

hongsok by Tera Contributor
  • 1934 Views
  • 8 replies
  • 0 helpfuls

prevent autoresolving incidents from dynatrace

Hi,I am trying to prevent autoclose the incidents from dynatrace when problem title contains "P1_CRITICAL'. Currently all incidents will be created and autoclose from dynatrace alerts. Now we want to exclude auto-closing when ever problem title conta...

reddy8055 by Tera Contributor
  • 767 Views
  • 7 replies
  • 0 helpfuls

Resolved! How to open pop up form with some field

I have a requirement on incident to open pop up formon that pop up form it should have few fields from another table.which will submit record with some details from incident and popup on the other table form.can we do it with Business rule not from u...

shweta14 by Tera Contributor
  • 1984 Views
  • 7 replies
  • 2 helpfuls

how to Set field value in reference field using BR

Hi,How to set reference field value using Business rule?I have 2 fields on a custom tableu_id-StringUserRef-reference to sys_userI want Business rule code that when u_id is filled or updated it should go glide record using u_id field to match UserId ...

Akki1 by Tera Contributor
  • 2405 Views
  • 15 replies
  • 1 helpfuls

TimeLine Dynamic in Widget

I need to create a dynamic timeline in a widget in ServiceNow. I'm using the code below. But, the dynamic variables don't work (as the picture shows). I would like to know how to set this variable in client script, because when I use ${Variable Name}...

teste.png Captura de tela 2022-10-17 154911.png
__47 by Tera Contributor
  • 685 Views
  • 4 replies
  • 0 helpfuls

Resolved! Too many elements to display breakdown error in PA

Hi All, We have created indicator on Metric Instance to find out assets total In Stock/In Use duration. We have used breakdown on alm_hardware table with some filters, While preview it shows around 22k records. In system property breakdown maximum re...

Abhijit4_0-1666034159626.png Abhijit4_0-1666035112226.png
Abhijit4 by Mega Sage
  • 1675 Views
  • 9 replies
  • 3 helpfuls

Resolved! Configuring lookup using list

Where i configure de lookup using list? For example, table1 is referenced to sys_user in field Something2 and i need more fields in popup sys_user, like a city, company, etc..   

sn.JPG
Alexandre17 by Tera Expert
  • 3044 Views
  • 11 replies
  • 11 helpfuls

Make all fields on a form editable

Hi,I have a requirement to make all fields editable on a form if the user has a particular role. What's the best way to do this? I have written this scripts but not sure if this is the best way or the correct way..  if (g_user.hasRoleExactly('problem...

paradise624 by Tera Contributor
  • 943 Views
  • 4 replies
  • 0 helpfuls

Resolved! Unable to clone

Hi all, id be very glad of a little help with a strange issue.I am trying to clone PROD over DEV .. I have done this before fine. Now when trying to create the clone request record i get the error :Destination returned error, status = 500 The user ac...

Resolved! Difference between UI policy and Client script

Hello! When we need to make a field mandatory, in the initial state we can do it using client script and UI Policy Client script: (on load)if (g_form.isNewRecord()) {g_form.setMandatory('u_field', true); Ui policy:condition --> state is newui policy ...