How can I select multiple user's as watchers from Virtual Agent?

Vijaya13
Tera Contributor

I have a field called "Watcher" from create a incident topic.

So, I have added "Reference Choice" as input and I can select only one user at a time.

But I want to selete multiple user's from the list and update in the incident record.

 

I have followed the below method to select the multiple user's but it adds the one user as watcher from incident record.

Like, it takes only last selected users from the "Reference Choice"

 

find_real_file.png

1 ACCEPTED SOLUTION

There is one simple minor issue with your design, you have to use the input from the Additional Watchers below the Watcher decision. 

find_real_file.png

There are a couple of components with similar names which could have caused the confusion.

I have modified the topic name to "Add Watcher" for that component to understanding it better,

find_real_file.png

 

find_real_file.png

 

 

View solution in original post

17 REPLIES 17

Muralidharan BS
Mega Sage
Mega Sage

what you have done is correct but below the reference choice, you have to add a record action component to add the users to the incident table

Like below, the component is "record action"

find_real_file.png

and the field to update is watchlist, I used the below logic to update it., 

first grab the existing watch list from the inc selected and then add the new user to it. Both are separated by a comma. 

find_real_file.png

I tried in my PDI and it works.

I tried this but didn't work.. Can you tell me where i'm doing wrong? 

 

find_real_file.png

 

find_real_file.png

 

 

find_real_file.png

 

find_real_file.png

 

 

 

Record action:

find_real_file.png 

 

find_real_file.png

Where you're updating the Watch List field, you're appending the "Additional User" input to the field where you should be appending the "Additional Watcher" input.

I don't have enough information to see fully why your Group List is null though. I can see that you don't update the Incident record after getting "Additional Group Watcher", so that input is currently not being used, but that doesn't explain why the field on the Incident is nullnull. I'd need to see the fields you're setting in "Create Incident" to help explain that.

Vijaya13
Tera Contributor

basically, I want to select multiple users as watcher in Virtual Agent. How can I do this? whats the best way? Currently, watcher is the list collector field from incident record so how can I update the multiple users in VA?

 

If I resove the watcher concept, I can apply the same for group watcher