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

Adding CC in email notification from event parameter

nikhilgadodiya
Kilo Contributor

I had created an event from workflow and parm 1 contain person to receive an email with parm 2 being person in CC

find_real_file.png

Now in notification I checked

find_real_file.png

And in email script have written

find_real_file.png

But I am not getting anything in CC when an email is triggered please help me over this..

1 ACCEPTED SOLUTION

Ya I am not asking to change it. You have to put that in loop to get it working,


Below link might be helpful.Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.



Multiple CC Person, through workflow





Thanks,
Deepa


View solution in original post

9 REPLIES 9

Ya I am not asking to change it. You have to put that in loop to get it working,


Below link might be helpful.Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.



Multiple CC Person, through workflow





Thanks,
Deepa


Thanks deepa it Worked:P:P


Glad to know that


Good test. So simply, the script needs to be updated a bit to handle multiple recipients in the event parameter and add them one at a time.


Warning: untested code ahead



var uList = event.parm2.split(',');


for (var i = 0; i < uList.length; i++) {


        email.addAddress('cc', uList[i], '');


}


Deepa Srivastav
Kilo Sage

You have to put this inside loop. I don't think you will get in this way as there are 2 email address.



Mark Correct if it solved your issue or hit Like and Helpful if you find my response worthy.


Thanks,
Deepa