
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 10:44 AM
we have a catalog which has multi row variable sets. we are looking at creating RITM's against this catalog using Cart API.
how do we update the muti row variable set of the RITM when creating these RITM's programatically?
Thanks,
Ravish
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:07 AM
If memory serves the system stores the MRVs as a JSON formated string. So you should be able to just do something like
var m = JSON.parse(current.variables.MRVS_NAME);
m[0].somevarinmrv = "asdflkahsdlkfjasd";
current.variables.MRVS_NAME = JSON.stringify(m);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:07 AM
If memory serves the system stores the MRVs as a JSON formated string. So you should be able to just do something like
var m = JSON.parse(current.variables.MRVS_NAME);
m[0].somevarinmrv = "asdflkahsdlkfjasd";
current.variables.MRVS_NAME = JSON.stringify(m);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2023 06:23 AM
thank you