I have a template that sends an email at the end, in the extra, and I'm having trouble getting it.
The email sending code is:
sendMail(<advogadoDoCaso.emailAdvResponsavel>, “Atenção, já está disponível a prévia com testemunhas do processo nº ” & <dadosDoProcesso.numerodoprocesso> & “. \b\b Acesse ” & documentInfo(<docInfo.link>, “pdf”) & ” e visualize o documento.”)
The struct of docInfo is this:
-<docInfo> : struct[DocumentInfo] {
fields {
+[link] : String
}
}
I have tried in many ways, such as calling documentInfo outside sendEmail, but I am not able to make it work, because the email is sent with the field blank, as if there was no link