List collector in Multi-row variable set workaround

Tadz
Tera Guru
Tera Guru

Hi Everyone,

Based on this link: https://community.servicenow.com/community?id=community_blog&sys_id=15d6c8811b328010a59033f2cd4bcbf9

List collector is not possible in MRVS

is there any workaround for this one?

Thanks,

Tadz

3 REPLIES 3

Ankur Bawiskar
Tera Patron
Tera Patron

@Tadz 

Currently it is not supported.

Possibly in upcoming release it might come who knows.

I don't think any alternative as of now

Regards
Ankur

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

Willem
Giga Sage
Giga Sage

Hi Tadz,

As you already found out the List collector is not available.

 

What are you trying to do? So what should a user be able to do that requires the List collector on the MRVS?

For most scenario's we use 1 catalog item with the List collector on it and users have to request multiple requested items that way. Not ideal but considering MRVS do not support list collectors, it is the most OOTB option.

 

Possible workaround:

  • Add the list collector to your Catalog item level.
  • On change of the list collector copy the value over to a variable(for example a text field) in your Multi Row Variable Set (in a new Row).
  • On the same onChange, clear the List collector after you copied the values to the MRVS.

To add new row use:

var rowObj = [];
	rowObj.push({
		"actions": "",
		"variable_name": "Does this work?"
	});
	
	g_form.setValue('mrvs_internal_name', JSON.stringify(rowObj));

 

https://community.servicenow.com/community?id=community_article&sys_id=a9c7454ddb6880d4414eeeb5ca961...

bmsmith
Tera Contributor

We have a similar issue with wanting to use list collectors with mrvs. I see it's been made available in Quebec. just tried this on my dev instance and it works

https://community.servicenow.com/community?id=view_idea&sysparm_idea_id=272ff6691b870410ada243f6fe4b...