How to store record producer Muti row variables set in custom table

Harish6
Giga Contributor

Hi Team,

I am using multi row variable set in record producer, we are able to insert the data from Catalog item but we are not able see that data once record generated in the portal.

Please help me to understand how to store record producer multi row variable set in custom table.

Appreciate your response.

find_real_file.png

Thanks & Regards

Harish

7 REPLIES 7

Is this answered?

if my answer helped you, kindly mark it as Correct & 👍Helpful so that it does not appear in unanswered list & close the thread.

Regards
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

James Connors1
Kilo Explorer

We are hitting an issue where the record producer creates all of the rows (targeted at the same table) but is first adding an extra row with null values into the target table, any suggestions to resolve this are appreciated.

 

var variableValue = producer.mvs_nac_detail;

var parser = JSON.parse(variableValue);

var gr = new GlideRecord('x_ohhr_nac_outb_outbound');

for(var i=0;i<parser.length;i++){
gs.info("NAC Parser" + parser.length);
gr.initialize();
gr.mac_address = parser[i].mac_address;
gr.host_name = parser[i].host_name;
gr.host_role = parser[i].host_role;
gr.device_type = parser[i].device_type;
gr.serial_number = parser[i].serial_number;
gr.insert();
}

abirakundu23
Mega Sage

Hello @Ankur Bawiskar ,

How can we store in MRVS record in html table format in notification ? Please let me know the process.