Announcement

Collapse
No announcement yet.

Adding pdf to email notification

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • yberges
    replied
    thanks

    Leave a comment:


  • lazovic
    commented on 's reply
    Add Execute Formula Script action (https://docs.espocrm.com/administrat...formula-script) to your Workflow and paste formula.

  • yberges
    replied
    ok using in workflow module ? (sorry i forgot to men,tion this)

    Leave a comment:


  • lazovic
    replied
    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);
    In the first part, a PDF file is created, in the second part, an email with an attached PDF file is created, in the third, this email is sent.​

    Leave a comment:


  • yberges
    replied
    hello lazovic just for a confirmation your link is for generate and attache PDF my pdf are alreday create i need to attache it on sending did you have some reference ?
    thanks

    Leave a comment:


  • yberges
    replied
    ok great thanks

    Leave a comment:


  • lazovic
    replied
    Hi yberges,

    This can be useful: https://docs.espocrm.com/administrat...extpdfgenerate.

    Leave a comment:


  • yberges
    started a topic Adding pdf to email notification

    Adding pdf to email notification

    hello in my workflow i add some email sending action, how i can add pdf created ?
    regards
Working...
X