Survey Trigger Condition | User Field = Watch list | Additional rule based on email domain of Watch list users

JR42
Giga Guru

Hello! I have a survey that generates a survey instance to everyone listed in the Watch list of the Project when it is Closed (using the User Field in the Survey Trigger).
I have a new requirement to prevent survey instances from generating for users in the Watch list that have a specific email domain associated with their account.

Does anyone have any advice on how I can prevent the surveys from generating for the Watch list users that have an email address associated with their account that ends in the specified domain?

Here is an example:

1) Users are added to the watch list on a Project with their ServiceNow user account.

2) The Project is set to Closed.

3) A Survey instance is generated for each user listed in the Watch list, unless the email address associated with their ServiceNow account ends in @gmail.com (for example).

 

Thanks!

1 ACCEPTED SOLUTION

Jake Sadler
Kilo Sage

Hi,

 

You could create a before insert business rule on the survey instance table to check the user email address and abort the action if it matches your conditions.

 

Thanks

 

Jake

View solution in original post

6 REPLIES 6

Hi,

 

To dot walk click show related fields then click assigned to==> user fields then select email.

 

find_real_file.png

Jake, thank you so much for your help!