The CreatorCon Call for Content is officially open! Get started here.

Automatically adding users to CC also adds instance mail

ehgebla
Giga Guru

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

6 REPLIES 6

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!



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.