Hi All,
I am sending emails via Transactions and am trying to automatically populate the email addresses of persons i would like to be CC'd on each email.
I have a UserEvent script (attached to record type 'Message') which on BeforeLoad of Transaction emails populates the names of persons to be CC'd on the email. This works as expected, however there is an additional checkbox field that i would like to check. This is the 'CC' column.
Currently i have the following code to set the email addresses of the persons i would like to CC.
var thisCopyToSublist = form.getSubList('ccbcclist');
thisCopyToSublist.setLineItemValue('email',sublist LineNumber,'emailAddress1@email.com');
For setting the CC value i have tried the following lines but to no avail thus far:
thisCopyToSublist.setLineItemValue('Cc',sublistLineNumber,'Yes');
thisCopyToSublist.setLineItemValue('Cc',sublistLineNumber,'T');
thisCopyToSublist.setLineItemValue('Cc',sublistLineNumber,true);
Currently our users would have to manually check the 'CC' checkbox beside each email address that was CC'd.
Is there anyway to automatically set this CC checkbox value so that it is check by default?
Thanks in advance,
Jordan