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

Forum Posts

Resolved! Duedate Should be Business days

Hi,I have a requirement as follows,based on the priority the Duedate should be populated, i was able to get the due date but its taking the calender days, but not the Business days. can anyone please suggest with this, below is the script include for...

ursnani by Giga Guru
  • 3610 Views
  • 13 replies
  • 1 helpfuls

Dot walking in data table widget

Hi All,I want to display value from a custom field created in task table in it's approval record. so, i used OOTB "Data table" widget and selected table as "sysapproval_approver" but i can't find a way to add dot walked fields to the fields array (do...

Venkat122 by Kilo Guru
  • 2640 Views
  • 6 replies
  • 2 helpfuls

Resolved! gs.log for executing pre/post-import script

Hello all,We currently have pre/post-scripts for our users scheduled data import. The pre-script looks something like this:gs.log('DATA LOADER | HR Import Process has started ', 'HROnBoard');I'm trying to locate where this message will show but I can...

Resolved! Dynamic Approval Group Scripting

I need to have the approval group in my workflow be dynamic based on what the users selects from a request form field.   Here are the details.     My request form has a lookup select box called Location (location) that is referring a table holding al...

chrish5 by Giga Guru
  • 4598 Views
  • 21 replies
  • 0 helpfuls

Check for a field changing while in an onSubmit client script?

When a user clicks on a UI action to screen a Demand, the State of the Demand changes to "Screening".Is there a way to have an onSubmit client script watch this change, and return false; (aborting the submit action?) with certain conditions (such as ...

SC10 by Kilo Guru
  • 3343 Views
  • 4 replies
  • 0 helpfuls

Resolved! Updating cost_center using REST API

Hi Guys,I am trying to update the cost center, location of a user in ServiceNow(Geneva) using REST api. I am using https://devxxxxx.service-now.com/api/now/v1/import/(table) with POST type. My input is {       "cost_center":" ",       "user_sys_id":"...

Resolved! proper syntax for UI macro alert using gs.getMessage

Can anyone please assist in converting the following into an alert using ${gs.getMessage('message');}   so we can display translated values?I highlighted in red the values I have messages for in the message table to substitute for. Thanks in advance ...

robertsduca by Giga Contributor
  • 5074 Views
  • 14 replies
  • 3 helpfuls

How to access catalog category name of catalog item?

Hi everyone,I'm looking to access the category name of the catalog item inside a workflow script.I know I can access the catalog item number like this:current.cat_item.u_numberBut how do I access the catalog category name, the catalog item is listed ...

zsolt_mester by Kilo Contributor
  • 2302 Views
  • 1 replies
  • 0 helpfuls

Resolved! Restrict login by roles

Our instance is using SSO LDAP. There are imports that pull the entire company's directory into sys_user. If the user does not have a specific role assigned to them, PA_user they cannot log in to ServiceNow.  Will someone help me find where that conf...

kimberlylp by Tera Guru
  • 3302 Views
  • 12 replies
  • 0 helpfuls

Resolved! Dynamic Query with Service Portal SN Record Picker

Hello,I am trying to setup two SN record pickers where one is the assignment group and the other is the assigned to user. I want the assigned to user SN record picker to only show the group members of the currently selected group in the first picker....

assign.PNG assigned_to.PNG
forrestfalk by Giga Contributor
  • 10551 Views
  • 3 replies
  • 15 helpfuls