Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Forum Posts

Resolved! Undo changes to "Service management" page

Hi,As per "CMS training" on servicenow website, I made some changes to "Service management CMS" page which I want to revert back to originalChanges are captured in the default update set but there is no related link to revert back to previous version...

updateset.JPG find_real_file.png
ShishirG by Kilo Expert
  • 5081 Views
  • 6 replies
  • 0 helpfuls

Resolved! Override Dependent Field

In our instance, the Location field on the task table is dependent on the Company field.   However, in Projects, we want to be able to associate the project to other Companies, but want the location to be restricted to one of our company locations, n...

kchorny by Tera Guru
  • 4735 Views
  • 4 replies
  • 0 helpfuls

SP widget: get data from table

Hi,in my widget I need to load all records   - 2 fields (e.g. name, surname) from table (e.g. Person)My client script:c.server.get({   action: "getUsers"   }).then(function(response) {   console.log(response);   });My server script:if (input && input...

stryker129 by Mega Guru
  • 3743 Views
  • 2 replies
  • 0 helpfuls

Resolved! Send an email 1 hour prior to a date/time in a record

Hi. I am trying to set up an email notification that will be sent to the assignee of a change 1 hour prior to the planned start date. To do this I've attempted to create a Scheduled Job that runs hourly, checks for records where the planned start dat...

Resolved! Query sc_req_item

Hello,I need to query sc_req_item from sc_task,   I tried different combinations but I could not make it to work. Could someone please assist.var current_cat_task = g_form.getValue('number');var gr = new GlideRecord('sc_req_item');gr.addQuery('sys_id...

JLeong by Mega Sage
  • 3668 Views
  • 2 replies
  • 1 helpfuls

Resolved! Wait for Condition not triggering - Custom table

I have extended both the request and the requested item tables to create two new tables: position and required item, respectively. This is to allow people to define what catalog items are required for new hires so we can automatically script creation...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png

Resolved! Best practices for updating choices?

Hi there,I'm working on a custom application.   There is a database field of type "Choice".   If requirements change down the road, and some choices need to be removed and some new choices need to be added.   What is the recommended course of action?...

JennyHu by Tera Guru
  • 2314 Views
  • 3 replies
  • 2 helpfuls

Resolved! Submitting form from Service Portal page

Hi guys,I created a custom form (similar to system form) and I'd like to add records to the table through my form from Service Portal Page.How can I do that?In other words, submit button should do the same thing as a submit button on system form.Than...

stryker129 by Mega Guru
  • 6133 Views
  • 3 replies
  • 1 helpfuls

Javascript in URL from Arguments not working

Hi guysI have a menu module with Link Type = URL from Arguments. I have created a function in Script Include (client callable) to build the condition/url. However for some reason, javascript is coming back as NULL.I have tested my code in Background ...

find_real_file.png

Resolved! How to set variables on a requested item made from a script?

So I made a little REST script that will make a request into ServiceNow from a (mostly) publicly accessible web form. Making the request is easy, and right after the request is generated, I immediately afterwards make a service catalog request that i...

alexjyong by Giga Contributor
  • 6835 Views
  • 5 replies
  • 0 helpfuls

Resolved! update scratchpad variable through script

Hi All,I have a if workflow activity which will return yes or no based on scratchpad variable. but, unfortunately for one request the scratchpad variable is assigned with wrong value and it is creating odd results, so is there anyway to change the va...

Resolved! Tag Reporting

Is it possible to create a report to see when a tag was added to an incident? I have created a database view to join label_entry and incident table and I can report on when the tag was created but I need to know when a particular tag was added to an ...

Phil A by Tera Contributor
  • 11159 Views
  • 4 replies
  • 2 helpfuls