Script to set Variable on RITM

carlav
Kilo Guru

I have a workflow that I need a Variable field filled in IF a selection is made - the script I have written isn't doing anything. I have also tried 

current.variables.account_new_ifsopstitle = account_new_ifsopstitlenovacura;
(account_new_ifsopstitlenovacura is the Value of the Variable Text)

 

find_real_file.png

 

 

find_real_file.png

5 REPLIES 5

Musab Rasheed
Tera Sage
Tera Sage

Hi,

Script looks correct but if variable is part of variable set then use below. Mark my answer as correct if that helps

current.variable_pool.variable_name = 'yes'; //when part of variable set

Please hit like and mark my response as correct if that helps
Regards,
Musab

It is a Select box variable

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

script looks fine.

what type of variable is account_new_ifsopstitle?

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

It is select box variable