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

Forum Posts

Refresh OAuth token

Hi All, How to refresh the access token. Am getting the below message in the rest message. OAuth Access or Refresh tokens are not available. Verify the OAuth configuration and click the 'Get OAuth Token' link below to request a new token. How to auto...

find_real_file.png
Siddharth5 by Kilo Contributor
  • 9611 Views
  • 1 replies
  • 0 helpfuls

refernce qualifier to get ci assigned to user

on catalog form, we have two fields, 1 - requestor 2 - ci if a user selects requestor then in ci - it has to show the list of ci's with class computer assigned to user, if there is no ci then it should show all ci of class computer here is my code an...

find_real_file.png
gtk by Mega Sage
  • 954 Views
  • 2 replies
  • 0 helpfuls

Open GlideURL from GlideModal

Hello, We have a requirement to do a Bulk Update on Incident table - Similar to context menu 'Update Selected' , but using a List UI action. I copied the code below from Update Selected Context Menu, and tried to Open it in a popup window using g_nav...

find_real_file.png
jmcagod by Kilo Guru
  • 1420 Views
  • 1 replies
  • 0 helpfuls

Resolved! How can I get the "Edit" button on a custom related list

Hello SN Community,  I have a requirement for a custom related list on a form whereby a user can add or remove companies impacted on an incident form. I created the related list through a new relationship (system definition < relationships) but the a...

Nya Valdez1 by Tera Contributor
  • 3180 Views
  • 8 replies
  • 1 helpfuls

Resolved! $sp.getRecord() not working with input parameters

Hi, Want to confirm if this is just for me or everyone else. $sp.getRecord() is working fine. However, if I try $sp.getRecord('incident','<sys_id>'), it's not fetching the field values object in Widget Server script. Greatly appreciate your help. // ...

tkrishna29 by Giga Guru
  • 1628 Views
  • 6 replies
  • 0 helpfuls

Script to get Groups

Hi guys, I'm new to servicenow. I have a catalog to add/remove users from groups, but I would like to put an option when the user selects a group of type "Approvers" to appear in a read-only list all the approving groups that it is already included, ...

Rick27 by Tera Contributor
  • 1322 Views
  • 4 replies
  • 0 helpfuls

Resolved! workflow condition check if field empty

hi, I need to check if a table’s field  is empty to decide how many approvals the request should have. the table :  the form : On the form, user chooses a BLI.  A script retrieve Sector and other informations form the table. what i need to do : if ...

find_real_file.png find_real_file.png
Nawal by Mega Guru
  • 1981 Views
  • 2 replies
  • 1 helpfuls

Resolved! How to get group members in list collector?

Hi All, How to add group members in list collector variable,after selecting the group name. I have used below code but ,It is not working for me.Can you please correct my code. Script Include: var GroupMembers = Class.create();GroupMembers.prototype ...

vardhini by Kilo Expert
  • 2092 Views
  • 8 replies
  • 1 helpfuls