thanks
Announcement
Collapse
No announcement yet.
Adding pdf to email notification
Collapse
X
-
Add Execute Formula Script action (https://docs.espocrm.com/administrat...formula-script) to your Workflow and paste formula.
-
yberges,
This is the whole formula generating PDF file, attaching it to email and sending this email.
Code:$attachmentId = ext\pdf\generate( 'Lead', entity\attribute('id'), 'pdf-template-id', 'test.pdf' ); $emailId = record\create('Email', 'subject', 'Test PDF', 'body', 'PDF is attached', 'to', entity\attribute('emailAddress'), 'attachmentsIds', list($attachmentId) ); ext\email\send($emailId);
Leave a comment:
-
Leave a comment:
-
Adding pdf to email notification
hello in my workflow i add some email sending action, how i can add pdf created ?
regardsTags: None
Leave a comment: