- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:30 PM
Hello developers,
I have a requirement to upload data from external source to mrvs , i could get the data into my Client script but unable to set the MRVS.
Appreciate if anyone can help. Thanks!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:36 PM - edited 12-21-2023 11:14 PM
Hi @servicenow14710 ,
if I understood right you want to write data into the MRVS within the client script. You need to add the MRVS value as JSON object. Example:
//MRVS with 2 columns and 2 rows:
//Array of objects
var obj_array = [
{
"col_name1" : "value1_1",
"col_name2" : "value2_1"
},
{
"col_name1" : "value1_2",
"col_name2" : "value2_2"
}
];
g_form.setValue("mrvs_variable_name", JSON.stringify(obj_array));
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2023 10:36 PM - edited 12-21-2023 11:14 PM
Hi @servicenow14710 ,
if I understood right you want to write data into the MRVS within the client script. You need to add the MRVS value as JSON object. Example:
//MRVS with 2 columns and 2 rows:
//Array of objects
var obj_array = [
{
"col_name1" : "value1_1",
"col_name2" : "value2_1"
},
{
"col_name1" : "value1_2",
"col_name2" : "value2_2"
}
];
g_form.setValue("mrvs_variable_name", JSON.stringify(obj_array));
Greets
Daniel
Please mark reply as Helpful/Correct, if applicable. Thanks!