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.
Announcement
Collapse
No announcement yet.
send email with PDF using workflow
Collapse
X
-
Hello,
there are new formula for send mail & pdf .. so just need create a workflow
- Likes 2
-
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.
- Likes 2
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