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

Forum Posts

Setting a Date-Time field with a GMT value

Hello all,I'm trying to write a business rule that manipulates a date/time string always provided to us in GMT, to then populate a date-time field on a record.I'm struggling to populate the field with the GMT time, ie it's always interpreted as the d...

Jamsta1912 by Tera Guru
  • 3610 Views
  • 5 replies
  • 0 helpfuls

Resolved! Script Include doesn't return a value for a Non-Admin user.

Hello people! I have a Script Include that returns a value to a Catalog Client Script and puts it in a field on the Portal, this works fine for admin users, but when I impersonate the real requester it doesn't work and the value returned is always nu...

Yanal by Giga Guru
  • 3616 Views
  • 6 replies
  • 2 helpfuls

Resolved! What are the equivalent variables in email scripts?

        What are the equivalent variables in email scripts?          Fields in sc_request table can be easily accessed from workflow or notification, but how to access them in email scripts? For example: In notification: ${sysapproval.description}, $...

Liuduan by Kilo Expert
  • 2486 Views
  • 14 replies
  • 2 helpfuls

Help with addJoinQuery()

Hi Team, I need to access object of the join table. Any help? For eg: if we see below example, how can i access fields of incident table? Also orderBy is not supposed to be working. When i am trying to print the order, it is coming as undefined:   //...

Resolved! glide.sys.time_format to include milliseconds???

Is there anyway to get milliseconds on the glide.sys.time_format, sys_properties property? Servicenow only shows that you can do HH or hh for hour, mm for minutes, and ss for seconds in their documentation https://docs.servicenow.com/bundle/newyork-...

find_real_file.png find_real_file.png find_real_file.png
Ryan74 by Tera Contributor
  • 3448 Views
  • 6 replies
  • 3 helpfuls

Resolved! How to show/hide custom widget for specific portals

Hi Community, I created one widget with body html to add security information on sc_cat_item of our front office portal. <div class="panel panel-primary"> <div class="panel-heading">${Security Informations}</div> <div class="panel-body"> ${Pleas...

Oauth via Scheduled Job

Hi I've created a Application Registry to connect to our AzureAD.  If i go to the outbound rest message and click "Get oAuth Token" i receive the token and can run the API Call; however, i'm now attempting to refresh this token and run the call via a...

Ashby0003 by Tera Guru
  • 1604 Views
  • 2 replies
  • 0 helpfuls

Resolved! No entry in sys_app after publishing scoped app

Hi all,  I've made an scoped app on the sandbox instance, when the first version was done i published my scoped app. After publishing i've installed the app on the dev instance via System Applications > My Company Applications. When installed, i want...

Tjardo by Kilo Contributor
  • 2809 Views
  • 5 replies
  • 4 helpfuls

How to return display value instead of sys_id

All other fields are returning as expected, instead of 'manager'.  How can I modify this to not return a sys_id? function onChange(control, oldValue, newValue, isLoading){ var requester = ''; if(g_form.getValue('ConfirmInfoReqOtherChoice') == 'No')...

Resolved! API Calls from designated IP addresses

  Our Chief Security Officer has asked if ServiceNow has a way to force API calls are only received from designated IP addresses. As a use case, we would like to only allow servers within our local network to be able to make API calls to our ServiceN...

Joe Handley by Tera Contributor
  • 3526 Views
  • 2 replies
  • 3 helpfuls

Hiding UI actions on service portal form widget

In the OOB Form widget there is a code line like this :      return $scope.data.f._ui_actions.filter(function(action) where does this '_ui_actions.filter refer to ? And how can I hide specific UI actions on the form widget. If I use 'Disable UI Actio...

kkronborg by Giga Contributor
  • 2509 Views
  • 2 replies
  • 5 helpfuls

how to Call cURL in servicenow

Hi guys, We are trying to integrate Servicenow with box.com box.com is providing cURL command to connect to it. so we would like to use the same in service now.   1) can we execute curl command in service now ???  2) is there any other easy way to in...

navee7777 by Tera Contributor
  • 12322 Views
  • 4 replies
  • 1 helpfuls

Lookup select box not working as expected.

Hello, I have a catalog item with a requirement to allow the user to add the CI that is impacted.  To meet this requirement I created two variables, a reference variable on sys_db_object to get the classes and a lookup select box variable to select t...

find_real_file.png find_real_file.png find_real_file.png find_real_file.png
gjz1 by Giga Expert
  • 3911 Views
  • 6 replies
  • 0 helpfuls