Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Multi Row Variable Set not saving data to Record Producer

joaof
Mega Expert

Hi,

I have created a new table and a Record Producer to insert data into this table.

I have added a Multi Row Variable Set in the Record Procuder, but when the new entry is created, I can't see the MRVS when I go to History > List, nor when I try to access the Glide Record through a script, gr.variables or gr.producer.

Do you know what I am missing here? Am I forced to extend task table when working with MRVS?

Thank you.

1 ACCEPTED SOLUTION

The solution from this post helped me.

Just edit mrvs_name by your MRVS internal name and variable1, variable2, variable3 by your MRVS variables' names.

View solution in original post

3 REPLIES 3

Michael Jones -
Giga Sage

Are you setting the values on the table using the record producer script? The value of a MVRS is a JSON formatted string, so there might be issues with the field you are trying to populate. In the record producer script try adding a line like:

gs.info('my MRVS value is: ' + producer.<MRVSname>);

And see if anything is logged. 

 

If this was helpful or correct, please be kind and remember to click appropriately!

Michael Jones - Proud member of the CloudPires team!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!

Hi Michael, this is not working.

Working normally with non-MRVS variables though.

The solution from this post helped me.

Just edit mrvs_name by your MRVS internal name and variable1, variable2, variable3 by your MRVS variables' names.