Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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

Forum Posts

Resolved! HELP! How to dynamically set recipients of an existing Scheduled Report to email addresses that are in the report's output?

I have a lot of Scheduled Reports that run a given Report whose output includes email addresses. Presently, my Scheduled Reports get emailed only to whoever I have pre-defined as the STATIC list of email addresses, per the Scheduled Reports UI (in th...

find_real_file.png find_real_file.png
scottbjorke by Tera Contributor
  • 13194 Views
  • 21 replies
  • 14 helpfuls

Resolved! How do i Empty an Array in scheduled Job

I having an array filled with Values.... I want empty the array in a schedules job.   g_form - i believe in not available for scheduled job as it gave me an error in background scripts when I tried  for (var k=0; k<array_a.length; k++) {g_form.clear...

snowymypet by Tera Contributor
  • 2393 Views
  • 1 replies
  • 0 helpfuls

Resolved! Convert String to GlideDateTime

Hi there, Trying to convert a string to a glidedatetime object. var date = '20/07/2020 8:00:10 AM'; var gdt = new GlideDateTime(); gdt.setDisplayValue(date, "DD/MM/YYYY K:mm:ss a"); var dateTimeForField = gdt.getDisplayValue(); gs.info('d: ' + dateTi...

Resolved! What roles do you actually need for REST API communication?

Over the last few weeks I've noted that the Service Now Docs portal seems to have a few pages outlining the roles you should require if you want to interface with your instance via the REST API.Specifically it notes the following:1) If you wish to vi...

Joey Alain1 by Tera Contributor
  • 24228 Views
  • 3 replies
  • 1 helpfuls

Resolved! Difference between g_form.getValue and g_form.getReference

New to ServiceNow. I am trying to understand different between g_form.getValue and g_form.getReference. I believe that getReference gives GlideRecord - i.e. the record we have in database, however getValue will return the current value. However, in o...

TT3 by Kilo Guru
  • 7126 Views
  • 2 replies
  • 5 helpfuls

Resolved! Field Styles: True/False Condition & Dot-walk

Hello Community, Table: Company (core_company) Q1: How to set background color using condition with a true/false checkbox I can set the background color of the Name field using background: red; There is a true/false checkbox (Test) on the form. In th...

Desmo by Mega Guru
  • 3608 Views
  • 3 replies
  • 3 helpfuls

integration with CA workload automation AE

We have a requirement to integrate CA workload automation AE ( autosys) with Servicenow event management. Does anyone have any pointer to how to achieve it , or any documentation. The requirement is to pull the alerts from Autosys to event management...

Resolved! Remove empty user from sys_user_has_role

Help requested How to remove (empty) user from sys_user_has role.list?  we recently cloned from prod to sub instance dev and in sys_user_has_role.list found empty(25) records. 

Vasu1 by Mega Contributor
  • 4661 Views
  • 16 replies
  • 5 helpfuls

Resolved! Change the name of the column and display in the report of type List

I created a report of type List using database view, my requirement is i want to change the name of the column in report. ex : In my table i have column name as invdt(Just an example), but in my report i want to display this column as Inventory Date ...

vai by Kilo Contributor
  • 5623 Views
  • 7 replies
  • 0 helpfuls

Resolved! Add record to sys_attachment table

Hi all,  I need to add an attachment to one catalog item at service portal so the end user can download it. I have the next script to do it.    It takes a record from sys_attachment table (href="/sys_attachment.do?sys_id=57b0583edbe60700c6efdd3b5e961...

find_real_file.png find_real_file.png
dioni95 by Kilo Expert
  • 6735 Views
  • 6 replies
  • 3 helpfuls

Resolved! Set default font and size of Email Client

Hi Team, My HR Team have a standard font and size for their correspondence to out companies employees. When we use the Email Client (through the three dots) the HTML font is always with no formatting and very small: Even if I use a 'Quick message' ...

find_real_file.png find_real_file.png

Default font

Hi All,  What is the default font family and font size for the article body text box in a kb article?   As we can see from below screenshot there are no default settings.

find_real_file.png
Aswathy2 by Tera Expert
  • 9698 Views
  • 6 replies
  • 2 helpfuls

Resolved! Set default font face and font size in TinyMCE editor?

Hi!Anyone know of a way to set the default font face and font size in the TinyMCE editor?There doesn't appear to be a global setting since I think it would be listed here...   Properties installed with the TinyMCE HTML field editor The TinyMCE site h...

Chris Bui by Giga Expert
  • 11911 Views
  • 12 replies
  • 8 helpfuls