email client template default CC active user

mrswann
Kilo Guru

Hi,

I have the email client enabled from the change_request table. I have started configuring the template and it's ALL GOOD!

However, one thing I am unsure of - I want the person who is opening the email client to be CCd in by default (as they would typically want to loop themselves in, and opt-out if necessary - rather than vice versa). This user is unlikely to exist within a field..

I have tried putting the following values into the CC of the email template:

gs.getUserID(), current.user.email, getUserID(), me(), user(), userID(),user, me, userid, userID, getUser, current.user,

to no avail! I have tried searching, and I have previously seen it done so know it is possible!


Any help much appreciated..

(sorry if this is the wrong area, it's not specific to change although that is where I am applying it...)

1 ACCEPTED SOLUTION

nathank
Giga Contributor

Hi



If you are trying to get the email of the person who is sending the email now (ie, not necessarily the person that opened the call) use javascript:gs.getUser().email



This will populate the CC field with the current users email address.



find_real_file.png



Regards



Nathan


View solution in original post

3 REPLIES 3

Mohamed Faizel
Giga Expert

Hi,



In the email client template just try "opened_by" in cc, it will pick up the opened by user email id



find_real_file.png


Thanks,


Mohamed.


nathank
Giga Contributor

Hi



If you are trying to get the email of the person who is sending the email now (ie, not necessarily the person that opened the call) use javascript:gs.getUser().email



This will populate the CC field with the current users email address.



find_real_file.png



Regards



Nathan


mrswann
Kilo Guru

Thanks both - this is about the person raising the email - not any user specifically existing in the record so it was the syntax: javascript:gs.getUser().email that   I needed.