We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

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

Forum Posts

Resolved! Global BR to avoid duplicate records on insert and update

Hi,In our instance we are facing issue with duplicate Incident/Change/Problem/sc_task number being created.We cannot make dictionary unique though we have the script with us to do it and then to remove those before setting number field as unique on t...

kbanerje by Giga Guru
  • 3823 Views
  • 3 replies
  • 0 helpfuls

Fetching data out of sys audit table

Hi,we want to fetch historic incident data from sys audit table. moving forward we have implemented metrics which is populated by a BR on incident table as per business requirements.but we still need to fetch /report on historic audit data when the m...

hakansuri by Kilo Expert
  • 2965 Views
  • 5 replies
  • 3 helpfuls

Resolved! Variables not showing up on dashboard - gauge

Howdy Folks,As an Admin I created a REPORT based upon the CATALOG TASK table (sc_task.) The CONDITIONS select one particular type of TASK, and the items to be listed are a mixture of fields found in the SC_TASK table (i.e. NUMBER) and those found as ...

Screen Shot 2016-08-23 at 11.01.16 AM.png Screen Shot 2016-08-23 at 11.01.07 AM.png
tobrien by Kilo Guru
  • 2471 Views
  • 4 replies
  • 1 helpfuls

catalog item download a file from catalog item

Hi,I need an user/customer to download file into their hard drive from a cat item form when the user click download link. I know the sys_id of the file saved in sys_attached table.Thank you!

dilini by Giga Expert
  • 5587 Views
  • 8 replies
  • 8 helpfuls

Resolved! Reference qualifier to show specific user group

I have a field on the form "Executives" and I want to use reference qualifier to show a specific group 'exec_group'. I can reference the 'user' in the reference but how do I filter through to show just the user group with select few users?

nealp_ by Tera Contributor
  • 10389 Views
  • 10 replies
  • 5 helpfuls

Resolved! Multiple Values per Report Field

Hi Everyone. Hopefully someone here can help me figure this out. I have a report that generates several thousand records with quite a few fields. There is one column that differs for every single record but frequently the records are identical except...

Resolved! Ajax and JSON

Hello all,I have a client script that makes an Ajax Call through a script include -   exactly as described in the wiki, here: GlideAjax - ServiceNow Wiki using client-side code similar to the example on that page:var ga = new GlideAjax('HelloWorld');...

Jamsta1912 by Tera Guru
  • 7015 Views
  • 6 replies
  • 5 helpfuls

Resolved! Changing table label and auto-number prefix

Hi All,I need to rename label and auto-number prefix of an existing table. This table inherited from task table. Many other functionalities are already developed in this table. I would like to know if this change is going to affect other functionalit...

kms by Kilo Expert
  • 5004 Views
  • 2 replies
  • 1 helpfuls

Resolved! Changing the font style

Hello,             I would like to know how to change the font style of selected field. I have written the below code in on change of 'font style' field (it has list of font styles), which does not seem to work. function onChange() {   var val = g_fo...

coolgirl by Mega Expert
  • 4131 Views
  • 13 replies
  • 0 helpfuls

Generate PDF as a formatted page and send email

My goal is to have a easy way to take a record (It happens to be a Purchase Order record in a custom PO table) in ServiceNow and generate a formatted page (including image tags + other html formatting) and then generate a PDF file from that page and ...

Chris York by Tera Expert
  • 9448 Views
  • 12 replies
  • 2 helpfuls

Resolved! Apply Template UI Action

Everyone,I need to apply a specific template on and Onclick UI Action.I ´m trying to use the applyTemplate method by using a GlideRecord variable, and initialize it after declaring it   but it is not working any ideas? Got information from Scripted t...

rosasmig by Kilo Contributor
  • 5199 Views
  • 4 replies
  • 2 helpfuls

Resolved! How do i add a space in this script

Hello All,I am not very good at scripting and have basically copied others here to get what i need.I am trying to create a task script to do the below, but I have "Test" as a first name and "Testing" as a surname.I currently have the below script, wh...

find_real_file.png
carlm1984 by Mega Contributor
  • 4560 Views
  • 5 replies
  • 6 helpfuls

Prepopulate Reference Field

Hello All -- I know this is possible but I'm drawing a complete blank. I'm trying to establish a reference field link between two tables so that data from onetable can be displayed on the other. I'm trying to configure it so that the reference field ...

2016-08-22_12-54-35.png 2016-08-22_13-06-00.png
chriscorbett by Giga Contributor
  • 1778 Views
  • 6 replies
  • 0 helpfuls

Resolved! Remove every 'null' in a string

Hello all!Hope you are having a great Monday. I have a scripting question, might be simple but I'm not very good with Regular Expressions. Any help is appreciated.So I have this string field, say 'Summary' and I'm storing the values of 8 other fields...

Resolved! Auto Numbering for extensible table

Hello community, I have an OOB table which is extensible. I am trying to enable Auto numbering for this OOB table using Managing Record Numbering - ServiceNow Wiki . The list view shows all the records from the child tables as well. When i setup auto...

rev3 by Mega Expert
  • 2652 Views
  • 9 replies
  • 4 helpfuls