How to access to the values of a MultiRow Variable Set in a Business rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:19 PM - edited 04-26-2023 12:37 PM
Hi!! I need to get the values form a MultiRow Variable Set in a business rules. Because I need to populate this values (from MRVS) into a new table.
MRVS:
Business Rule:
I need to populate those values into a new table.
New table:
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:25 PM
You posted a bunch of screen shots. Does the code you posted not work?
Last time I did anything with a MRV's I did
var mrv = JSON.parse("" + current.variables.MRV_VAR_NAME);
and that gave me an array of objects that had the rows of the MRV and each column could be accessed by doing
mrv[0].FIELD1
mrv[0].FIELD2
mrv[0].FIELD3
So what exactly is the issue? Does your code not work? Is it throwing an error and if so what is it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:38 PM
My code is not working... I create a ticket but I cant populate the values of the MRVS into the table

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:52 PM
So have you tried
var mrv = JSON.parse("" + current.variables.booking_details);
and then something like this to get at the values
mrv[0].FIELD1
mrv[0].FIELD2
mrv[0].FIELD3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2023 12:57 PM
Yes, I have.. And I find this error on Logs