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

Forum Posts

Resolved! nested if statement making me crazy

I have some fields that I need to hide on the loading of the form dependent on the user logged in. However it is conditional of a field status also. I thought I would nest the IF statements within an IF statement but I cant get it to work.  function ...

walshy by Giga Expert
  • 2460 Views
  • 2 replies
  • 1 helpfuls

Resolved! Metric Definition Script to exclude weekends

Team - I have a metric set up in our change table to record the time between the end date of the change and when it is closed. Creating the metric has improved our Change Manager's ability to manage compliance, however they have identified that time ...

andrewdunn by Giga Expert
  • 1509 Views
  • 1 replies
  • 0 helpfuls

Hide embedded list

I have a requirement to hide an embedded list. The article i was referencing to do so seems outdated as I receive an error that $$ is not a valid function. Does anyone know how to hide an embedded list based on a condition? Here is what I originally ...

Marskh11 by Tera Guru
  • 2392 Views
  • 4 replies
  • 2 helpfuls

Make a page public

We have a catalog item which we want  to be public without being signed into ServiceNow. So what I've done so far is: Created a page which is public, and then created a widget which I've made public as well.  When I open a new incognite page and try ...

find_real_file.png
Jen11 by Tera Expert
  • 4728 Views
  • 9 replies
  • 1 helpfuls

Resolved! Reject Comments on RITM

Hi all,I was sure I had this script working somewhere before, but I can't seem to find it. This is my need:When an approval goes out to our CEO he can click   "reject this request" link and then send an email back to SN with the response. In the emai...

Resolved! How large can an array be?

Hello!In an LDAP transform, I'm trying to disable groups that have been removed from AD by using an On Complete script.   I create an array of all groups in sys_user_group and an array of everything in the import set.   Then I use arrayUtil to give m...

Chris Bui by Giga Expert
  • 10265 Views
  • 8 replies
  • 10 helpfuls

Resolved! Hide Question Choice in Select Box variable

If the user indicates 'request_for_new_hire = No, I want to hide the 'New Hire' option in the 'employee_type' select box.  My script is not working:   function onChange(control, oldValue, newValue, isLoading) {   if (isLoading || newValue == '') {   ...

Resolved! Push group approval via workflow scratchpad

Dear All,   I am trying to push a group approval via scratchpad variable from Workflow. Here is the snippet : gs.log('Groupp ID is : '+workflow.scratchpad.chkGroup);   //contains sys_id of required groupvar answer = workflow.scratchpad.chkGroup;     ...

Puru2 by Tera Contributor
  • 1440 Views
  • 1 replies
  • 2 helpfuls

Resolved! Workflow Activity run as different user

Hello All, First of all, my sincere apologies for long question. below is background of my query.   I am working on one integration now. It uses OAuth2.0. I have setup working for this. I have authenticated third party application with myself logged ...

Ahmmed Ali by Giga Sage
  • 4731 Views
  • 3 replies
  • 1 helpfuls

Resolved! How to fill up annotation field from business rule script

Dear all, I am trying to display a clickable link on my task form in order to allow user to jum to a knowledge base article. In have try to add a field of type URL, but the problem is that it shows the whole URL syntax instead of only the text needed...

wakespirit by Kilo Guru
  • 3282 Views
  • 10 replies
  • 0 helpfuls

Resolved! OnChange Client script using a GlideRecord

Hi, I may well not be doing this correctly, but I am trying to run an onChange client script to assign the ci to a field from the user record. So I am  var user = g_form.getValue('u_requestor'); //Get the current user var gr = new GlideRecord('cmdb_...

Dan Brown2 by Kilo Sage
  • 12649 Views
  • 6 replies
  • 3 helpfuls

Resolved! Image in email script which redirects to a survey link

I want to use this image in an email script(Notification) so that when clicked on the image in email received then it redirects to servicenow. Below is the email script and I want to add the smiley on the end of notification.Can someone help? { temp...

find_real_file.png
anirban300 by Kilo Guru
  • 2711 Views
  • 6 replies
  • 3 helpfuls

Resolved! ODBC Test Connection getting failed

Hi All, I have followed steps from ServiceNow youtube and wiki page of how to set ODBC connection to SNow instance. My account is already in admin roles and soap roles in dev instance which mean I have access pretty much everything. I already set up ...

find_real_file.png
sk59 by Tera Expert
  • 5701 Views
  • 3 replies
  • 2 helpfuls