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! Check if OAuth Token is expired

I would like to know if there is a way via script to find if the existing OAuth token is still valid or expired ?  Currently we have API calls that fetch the Access token, and we have refresh token grant flow that will get us a new access token when ...

D_8 by Tera Contributor
  • 6927 Views
  • 3 replies
  • 2 helpfuls

Resolved! How to call a script include from a catalog client script

Hi, I want to know how to call a script include from a catalog client script. However, now the script include is undefined and the log client script returns null. What is wrong? Script include below: var getNumber = Class.create();getNumber.protot...

Mi4 by Tera Expert
  • 6077 Views
  • 14 replies
  • 7 helpfuls

Expand/collapse functionality in service portal widgets

Hi team, Need expand/collapse functionality in service portal for widgets. I Have few custom widgets in portal, on clicking + button widget should expand and show the records as below on clicking same button all records should collapse and show only ...

find_real_file.png

Resolved! Uploading Excel file from Powershell script corrupts data

This is a followup to a previous community case I had raised. We have setup a scheduled import to point to a data source record which reads it's attachment and if we manually upload an Excel file to the attachment, the import will run correctly. But ...

Tim Darrach1 by Tera Contributor
  • 2983 Views
  • 3 replies
  • 1 helpfuls

Resolved! Unable to Close Ui action using g_modal

Hi, I have created a UI action 'Copy Attachments' which I have extended to the Agent Workspace. Since GlideWindow do not work in Agent Workspace hence I have use g_modal to open a popup. Issue is I am unable to close the popup upon submission . I hav...

Avik3 by Giga Contributor
  • 4031 Views
  • 2 replies
  • 1 helpfuls

Resolved! Can't set fields Unique

Hi Everyone, I Just can't set fields to Unique no matter what I do, I have the personalize_dictionary role, I created the field from scratch, I even indexed It as suggested in other thread but nothing works, fields are still getting duplicated even w...

find_real_file.png find_real_file.png
Tony M by Kilo Expert
  • 6881 Views
  • 10 replies
  • 6 helpfuls

Resolved! Background script to update the List field

Hi All, I am trying to update the Groups field on the 'user_criteria' table with a list of groups . Below is the Background script i created ,but this is only updatng one group, bit not the sysid';s mentioned in the array . Please correct if I am wro...

Mrman by Tera Guru
  • 3080 Views
  • 2 replies
  • 0 helpfuls