Automatically adding users to CC also adds instance mail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 04:34 AM
Hi experts,
we are using code
current.watch_list = current.watch_list + ',' +email.copied;
added to "Create incident" inbound E-Mail action for automatically adding users to the watchlist of the incident.
However, this also adds the instance E-Mail address when users use them to CC the IT Support.
Is there any possibility to make a check in between that IF a specific mail (or more than one) is in CC it will NOT be added to watchlist?
Thank you for helping out!
Regards
Elena
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 12:05 AM - edited 09-19-2023 12:36 AM
Hi @Peter Bodelier ,
we actually have two instance adresses, but one of them rarely get CC'd. So we wanna get started with one to be excluded but have a plan in hand if the second one needs to be exluded as well. So a solution where we could a second one would be ideal.
EDIT: I don't know why, but for some reason your code surprisingly working today...
would there be a possibility to just add 2 mailaddresses in this line? like this?
(emails.indexOf('<<mail>>, <<mail>>'), 1);
or do we need to do it differently with your approach?
Thank you!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 12:36 AM
Can you share how you implemented my script, that would help in pinpointing the issue.
Help others to find a correct solution by marking the appropriate response as accepted solution and helpful.