How to define trigger for mutiple users in ai agent use case in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2025 07:08 AM
Hi,
In ai agent use case there is 'Define Trigger' section to automatically trigger a use case which takes a single user. But my requirement is to define trigger to all the users in the assignment group when an incident is created.
With the custom script I can only return string and I am able return only one user.
Can anyone help me with this?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 01:52 AM
You can use "Use existing table" instead of custom script and select "Assigned to [task]"
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2025 02:00 AM
It is only taking single user. How do I define trigger to all the user's from the assignment group on the incident record?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2025 02:10 AM
I think Trigger supports only one user. If the purpose is to notify users, you can create a VA topic and send notification to the entire group
Palani