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

Forum Posts

Resolved! gs.getUserId() return the wrong current user

Hi all!There's a problem with getUserId(). I have a business rule that will trigger when userA approves a record submitted by userB.When approved, the business rule will post a work_note to the record. The author is expected to be userA because he is...

LhoraMaeA by Tera Sage
  • 3304 Views
  • 6 replies
  • 0 helpfuls

Resolved! How to set static colors for donut report values

I have a custom table with 3 columns I am trying to report on with a custom color scheme I created.  For the first two columns (Pulled, Approved) I need Yes to always be green and No to always be red.  For the last one (Rejected) I need the opposite,...

chrish5_0-1703102963679.png
chrish5 by Giga Guru
  • 1861 Views
  • 3 replies
  • 2 helpfuls

Resolved! Default value for Catalog Variable using reference field

We have a custom table "u_extended_user_profile" which reference sys_user table using custom field "u_user". Two fields on our custom tables are: u_alternate_email_1 and u_alternate_email_1. On a record producer, we would like to auto populate two va...

MS25 by Mega Sage
  • 3409 Views
  • 4 replies
  • 3 helpfuls

Add watchlist to display BR

Hello, I have a display BR  (from servicenowguru) that displays tickets if you are the caller, on behalf of, or member of the assignment group. I also want those in the watch list to view the tickets. Is this possible? Below is my script.if (gs.getSe...

ceraulo by Mega Guru
  • 580 Views
  • 2 replies
  • 0 helpfuls

Table task

Hi, I have a task where I needed to create a certain field and it should be populated automatically by the system, just for failures, in the user record of the first supporter who handled the call. That is, the first assigned to that will be in troub...

yardenKrispel_0-1703164716174.png yardenKrispel_1-1703164725156.png yardenKrispel_2-1703164746038.png yardenKrispel_3-1703164812331.png

How to Format Date in UTC for Email Template iCalendar File?

Forum Post Title: How to Format Date in UTC for Email Template iCalendar File?Hi everyone, I'm currently working on an email template in ServiceNow that requires populating an iCalendar file. My challenge is with the date formatting. The date variabl...

ericlung by Tera Contributor
  • 1623 Views
  • 3 replies
  • 0 helpfuls

Resolved! Script Modification needed

Hi All, I am passing 2 id - test@gmail.com,test1@gmail.comIt is calling the rest message and adding only test@gmail.com. Yes for each userid , restmessage should get looped, As of now it is adding for one user id test@gmail.com Workflow Editorvar use...

Saib1 by Tera Guru
  • 916 Views
  • 5 replies
  • 0 helpfuls

Resolved! Compare Date date/time fields with same sys_id

Hey Everyone,  I'm super new with the date/time fields in SNOW. Basically I want to compare two date/time field values that have the same sys_id for a task.  Below is my code for right now. var incTask = new GlideRecord("task_sla"); incTask.addQuery(...

904.PNG
Community Alums by Community Alums  
  • 934 Views
  • 8 replies
  • 2 helpfuls

Open URL in new blank window

HI Everyone, I have created one UI Action to launch one custom URL. I am using Client side and Server side both in one UI Action. So, to launch an URL I am using gs.setRedirect(URL) . But it opens that URL in same window rather than opening on new wi...