It's not clear to me whether you need to send a report in email.
You can utilize formula to send an email with an attached PDF with report data.
Function to generate PDF attachment: https://docs.espocrm.com/administrat...extpdfgenerate
You will see how to send the email in the example.
Specify the ID of your PDF Template. That template should have entity type = Report.
Code:
$attachmentId = ext\pdf\generate( 'Report', 'copy-id-of-report-here' 'copy-id-of-template-here', 'report.pdf' );
Leave a comment: