Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Can you have comma separated email values in an email field?

DStoner1
Kilo Contributor

In our current Jakarta instance, some of our Change Request notifications are configured to send to a "User/group in field" recipient from the form called "Target audience DL," which is an Email field. The idea is that if I want to send out specific communication to a distribution list, I can put that DL in the field and the notification will send to them.

For one email, this works as expected. However, when I try multiple addresses, I get the following error:

find_real_file.png

I've already updated the Email field class to a length of 200 to allow for this.

So my main question is:

  1. Can I modify the Email field class to accept multiple email addresses? If so, how?

If not, what would another option be? Just use a string field and have an onChange client script validate the email address (e.g. that it has an "@" and ".com")?

Thanks in advance.

6 REPLIES 6

Neelavathi M
Tera Contributor

Hi ,

Even I have similar requirement like this, did you get solution for this.

 

Thanks

ricker
Tera Guru

@DStoner1,

Is there a reason you're not using watchlist?  Looks like you're trying to make watchlist functionality that already exists.