Hi,
I am trying to send an email using workflow "ext\email\applyTemplate(EMAIL_ID, EMAIL_TEMPLATE_ID, [PARENT_TYPE, PARENT_ID]) "as follows:
Its seems to work except that the email contents are empty. I am guessing it is because the email template id is wrong. The name is "Auto Reply for Admission". I tried all tricks but nothing works. How do i get email template id as the formula states? Also the email sent is not registered in Case's History or Stream.
I am trying to send an email using workflow "ext\email\applyTemplate(EMAIL_ID, EMAIL_TEMPLATE_ID, [PARENT_TYPE, PARENT_ID]) "as follows:
HTML Code:
$emailId = record\create( 'Email', 'to', entity\attribute('emailAddress'), 'parentType', 'Case' ); ext\email\applyTemplate($emailId, 'auto-reply-for-admission'); ext\email\send($emailId);
Comment