There are some entities (e.g invoice) support email PDF. Can i set a workflow to automate this action (using workflow to send invoice pdf)? thanks.
send email with PDF using workflow
Collapse
X
-
Hello,
there are new formula for send mail & pdf .. so just need create a workflowIf you could give the project a star on GitHub. EspoCrm believe our work truly deserves more recognition. Thanks. -
With formula:
https://docs.espocrm.com/administrat...extpdfgenerate
https://docs.espocrm.com/administrat...-in-attachment
You can put the script into Update Target Record action.Last edited by yuri; 05-27-2020, 10:30 AM.If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.Comment
-
Hi Yuri,
I have tried the above formulas. Unfortunately no email is sent. Do you have any idea where the problem could be?
Code:$attachmentId = ext\pdf\generate( 'Mitarbeitergesprch', entity\attribute('id'), '6006c897352394a05', 'test.pdf' ); $emailId = record\create('Email', 'to', 'example@example.com', 'attachmentsIds', list($attachmentId) ); // applying email template ext\email\applyTemplate($emailId, '6006ea7bb32d8065d'); ext\email\send($emailId);
Comment
Comment