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

Forum Posts

Resolved! How to convert integer value to Duration

Hi All, I need to convert integer value into Duration format and capture it in a Field whose type is also Duration.Scenario : I have a catalog form, which has the below variables :-  If any value is provided, in the 1st variable and the unit is selec...

find_real_file.png
Angshuman3 by Mega Guru
  • 9003 Views
  • 16 replies
  • 3 helpfuls

Resolved! How to call a system property on catalog client script or UI policy?

I have not written this before and fairly new to this approach on calling system property on client side scriptingand trying to understand how to call a system property on a Catalog client script?  I have defined a system property where the Value is ...

find_real_file.png find_real_file.png
Kirthi2 by Tera Contributor
  • 9751 Views
  • 6 replies
  • 2 helpfuls

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
  • 2921 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
  • 5601 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 Mega Guru
  • 3366 Views
  • 5 replies
  • 2 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
  • 3626 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
  • 3453 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
  • 5408 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
  • 5485 Views
  • 11 replies
  • 0 helpfuls