how to add rows automatically in MRVS based on mrvs variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 11:05 PM
Hi All,
We have a MRVS , inside that we are having 3 variales
variable 1: Days : select box : Weekdays , Weekends , All , Monday , Tuesday , Wednesday , Thursday , Friday , Saturday , Sunday
Variable 2 : Start Time : single line text
variable 3 : stop time : single line text
Requirement : when i select , Days as "Weekdays , and Start time as : 11 and stop time as : 12 and when i click "add"
then automatically 5 rows should add to the MRVS as below
monday 11 12
tuesday 11 12
wednesday 11 12
thrursday 11 12
friday 11 12
similarly when i select All , then all days should add , when i select weekends , saturday and sunday should add
is that possible?
please provide your inputs
Thank you,
Shabbir
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 11:18 PM
Hi Shabbir,
This Article explains all which should help you :
How to add rows dynamically in Multi Row Variable set (MRVS) based on input value of Catalog item
Mark my answer correct & Helpful, if Applicable.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2022 11:21 PM
Hi,
you can observe the Add/Remove button of MRVS and based on that set the MRVS value
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
‎09-09-2022 06:46 AM
Hope you are doing good.
Did my reply answer your question?
If my response helped please close the thread by marking appropriate response as correct so that it benefits future readers.
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
‎09-09-2022 08:28 PM
Hi Shabbir,
MVRS's content can be extracted or filled-out as JSON text.
What I could recommend it the following:
-Create a script to alert the content of your MVRS. Fill the MVRS with the desired values, and execute the script to show the generated JSON. Save it somewhere.
-Do the same with the different scenario and save each JSON being generated.
-In your code, define the MVRS's values using the JSON you obtained based on the conditions you mentioned.
I hope it helps!
Alex