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

Forum Posts

How to generate refresh token from script?

Hello All, I setup OAuth with an external client and created a REST message. created a script include to check whether there is any existing refresh token, if the refresh token is not expired then looks for access token and validates whether it expir...

find_real_file.png find_real_file.png
pooja V1 by Mega Guru
  • 1751 Views
  • 2 replies
  • 0 helpfuls

Resolved! Unable to delete records from sys_user_has_role table

I have a custom requirement wherein we need to remove the itil role for the users who have not logged in from pas 9o days. Below is my script which is not working in a scheduled job. var gr1 = new GlideRecord("sys_user_has_role");gr1.addEncodedQuery(...

GlideRecord returns only the first record from the query.

Hello Team, I am trying to query the group member table and applied few conditions to check if user is only member one group. here, the expecting output is list of all the users member of only a single group, to achieve this I have written a script i...

msm4 by Mega Guru
  • 3682 Views
  • 8 replies
  • 0 helpfuls

Multi Row Variable Set - Dynamic Select Box

Has anyone had any experience in adding options to a select box within a multi-row variable set, based on information added to another multi-row variable set? e.g. MRVS1 has two fields, Type (pre-filled select box) and Name (string). MRVS2 has one fi...

Alex Ward by Kilo Guru
  • 2185 Views
  • 5 replies
  • 2 helpfuls

Container split in not working in service portal?

Hi All,      Container split is not working in service portal.created varibel set with container start ,end  and split,it is working fine from catalog side.But when i open same catalog from service portal side,it is not working(not getting splitted)....

sam332 by Kilo Contributor
  • 8477 Views
  • 13 replies
  • 25 helpfuls

How to Create a Switch in Flow Designer

New to flow designer. First time trying to create some sort of switch. I have checkboxes on the request form. They can multi-select the checkboxes, but they need to route to different teams depending. So I will need some kind of join to have it wait ...

Pak by Giga Contributor
  • 2234 Views
  • 10 replies
  • 1 helpfuls

Resolved! How to insert Caller name in Incident template

Id like to create incident template for contacting customers.I want to insert customers name in "Additional comments" automatically,so entered as below, javascript:"Dear "+gs.current.caller_id.LastName() but the result is "Dear undefined".How can I i...

Kazu4 by Giga Contributor
  • 1731 Views
  • 6 replies
  • 1 helpfuls

Resolved! How to validate ip range by using client script only without using any glideajex or server side script. Please help me with example script

1.Test is a single line text variable. for example if i enter any ip range value(0.1.1.1 -25.5.5.5). its check the range and validate it. 2.if i enter incorrect(fsdfasf-11.1.1.1) ,(300.299.1.0) populate alert msg(please give valid ip range)

find_real_file.png
kranthi24 by Giga Contributor
  • 3628 Views
  • 7 replies
  • 1 helpfuls

Based upon assignment group, category fields to show dynamically

Create a category- assignment group mapping table and write client script and script include to handle the show hide if the category, if assignment group is not "software", category and subcategory related to software are not supposed to show up in t...

snavuluri by Giga Contributor
  • 3022 Views
  • 11 replies
  • 0 helpfuls