List collector in Multi-row variable set workaround

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 03:00 AM
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
- Labels:
-
Personal Developer Instance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 03:24 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-28-2020 03:49 AM
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));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2021 01:13 AM
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