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
  • 5677 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
  • 3512 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
  • 1949 Views
  • 3 replies
  • 1 helpfuls

Creating multiple records using mulitple JSON from REST API?

Can we create multiple incidents in servicenow through one rest api call maybe using multiple json? The api we are using is :  POST /now/table/{tableName} If it is possible how can we implement that? Was it possible in any of the previous versions?

Anish16 by Kilo Explorer
  • 2197 Views
  • 2 replies
  • 0 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
  • 3094 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
  • 3636 Views
  • 10 replies
  • 6 helpfuls