Script to set Variable on RITM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 04:36 AM
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)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 04:41 AM
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
Regards,
Musab
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 03:54 AM
It is a Select box variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2022 04:52 AM
Hi,
script looks fine.
what type of variable is account_new_ifsopstitle?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2022 03:54 AM
It is select box variable