Option for multi-selection in virtual agent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2020 07:30 AM
I wanted to give users an option to do multi-selection of records from Virtual Agent, just like a 'list_collector' type of field does. Is there anyway I can achieve it?
- Labels:
-
Virtual Agent

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-29-2020 08:51 AM
I haven't done this but it's an interesting subject - curious if anybody has implemented it.
A list collector is just a comma-separated list right? Could you just loop through a reference input and write each entry into a string Variable?
I always preface them with a text input as search, so I'd imagine it could look something like:
- [Text] Enter search term
- [Reference] Select your item
- [Script] Write sysid to vaVar
- [Yes/No] Do you want to add another item?
- If yes, loop back to 1
- Continue topic
- [Script] Do something with vaVar - i.e. write to List field/List Collector variable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-01-2020 11:34 AM
Hi Chris,
Thanks for your reply.
This could be an alternate way but I would say not very user friendly.
I think ServiceNow VA should provide such functionality in future release. Let's see 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-09-2020 05:48 AM
You should use the Script Variable to achieve it
create loop like Chris suggested and update the 'script variable' in script action option. for example (name of the variable which need to be create is Role)