i want to map Mutli row variable set fields with mu custom table

alishamulan
Tera Contributor

alishamulan_0-1746427248016.png

current.owner = producer.owner;
current.type = producer.type;
current.module = producer.module;
current.project = producer.project;
current.priority = producer.priority;
current.state = producer.state;
current.month = producer.month;
current.requirement_date = producer.requirement_date;
current.dev_start_date = producer.dev_start_date;
current.prod_migration_date = producer.prod_migration_date;
current.expected_end_date = producer.expected_end_date;
current.actual_end_date = producer.actual_end_date;
current.uat_date = producer.uat_date;
current.remarks = producer.remarks; this is the script u have out all variables name proper then to its not mappping to my table

5 REPLIES 5

Abhijit4
Mega Sage

Hi @alishamulan 

 

MRVS data is stored in JSON format so to access it, you would need to parse it and map it to appropriate fields.

 

Here is sample example for your reference:

var FR = producer.<MRVS_name>;
var arr = [];
var parsedData = JSON.parse(FR);
for (var i = 0; i < parsedData.length; i++) {
current.owner =parsedData[i].owner;
current.type=parsedData[i].type;
.....
.....
}
 

Regards,

Abhijit 

ServiceNow MVP

ServiceNow Buddy Owner: snbuddy.com

 

By marking my response as correct or helpful, you contribute to helping future readers with similar issues.
Regards,
Abhijit
ServiceNow MVP