Hello,
in a bpm process, I send an email with a task script, I have an email template that I add to the production script of the mail, I would like to incorporate a variable like {{myvariable}} in it. I have read all the docs, and tried several things, but nothing to do I can't do it.
I saw that there were fields in the email templates for process and process user task , but no way to get one working,
not a lot of docs on these fields. I'm probably doing it very badly.
my temporary solution is to concatenate the mail with fields like:
$$TEST= "Test";
$emailBody = string\concatenate('</p><p class="MsoNormal">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <img src="" style="width: 600px;"><br></p>',
$$TEST) ;
etc...
$emailId = record\create(
'Email',
'isHtml', true,
'to', 'XXXXXXXXXXXXXX',
'status', 'Sending',
'subject', 'Access info',
'body', $emailBody
);
ext\email\send($emailId);
Can someone help me to embed the variables in the template?
Comment