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

Forum Posts

Get Values out MRVS in a Flow Script

I have 3 MRVS on a Record Producer 1. i already use Get Catalog Variables2. i use a for each loop for 2 of the MRVSs For the 3 MRVS i just need the String Values for a Description Field.This MRVS has 1 Variable "year".Maybe user creates 3 rows with v...

Meloper by Kilo Sage
  • 1762 Views
  • 4 replies
  • 2 helpfuls

Resolved! parse json array to get key value pair

Hello All,I am trying to populate key-value pair from multi row variable set of incident table. With below code I am getting JSON arrayvar gr = new GlideRecord('incident');gr.addQuery('number=INC0001164');gr.query();if (gr.next()) {var mrvs = gr.vari...

Reshma77 by Tera Contributor
  • 5939 Views
  • 5 replies
  • 1 helpfuls

Random Number Generator

I am looking to create a 4 digit random number generator for a variable. Is there a specific variable type I should use? Right now I have single line variable and when I put the below script in the default value, it generates the number but there is ...

Rhane by Kilo Explorer
  • 12087 Views
  • 5 replies
  • 0 helpfuls

Resolved! Need to run a workflow through Fix script

Hi Team,We have a requirement to force run a workflow through fix script. I am new to this procedure. Could you please help me in script to run a workflow through sample script that can help me?Sample script:var wflw = new Workflow(); wflw.startFlow(...

If last login is before 90 days all roles need to be removed

Hello Experts,My requirement is if any user have not logged in for 90 days, but then there is no way for them to be able to request anything or raise an incident. I want to create a  scheduled job  so that all roles are removed except those roles snc...

raj149 by Giga Guru
  • 1560 Views
  • 4 replies
  • 1 helpfuls

Parallel tasks in Flow designer

Hi ,  I have a flow requirement for the below 1- Create a sc_task2-As per the variable value in a specific task variable , create another task but without closing task1.I tried using "Do the following in parallel" however it doesn't runs and for the ...

Resolved! Find element in array

Hi, I have a need in relation to arrays. Ex.: I have an array that always consists of 5 elements, because I have limited my GlideRecord query to 5.Array = [apple, lemon, orange, kiwi, banana]I need to find the element in position 5 (banana) and store...

Resolved! Issue with getmessage in onsubmit client script

Im using Onsubmit client script which will run on portal form widget. if (g_form.getActionName() == "sysverb_stay") { if (g_form.getValue("stage") == "12") { getMessage("please confirm you are at 'communication' stage and you are...

arey yaar by Giga Guru
  • 1674 Views
  • 3 replies
  • 4 helpfuls