Workflow Email action with Dynamic PDF Template Attachment
#2242 - Workflow with PDF attachment not working
Hi Support,
As advised, I've repurchased the plugin and installed the version 1.1. Also, validated the new license key.
The condition I've setup for workflow to trigger is when I edit a record (Account/Lead/Contact) and update a particular field. As soon as I click on Save (and the workflow trigger), I get error 500 (screenshot attached).
Please get in touch with me to resolve the issue.
Thanks, Rahul
5 years ago
I'm using CRM version 7.6.6 and PHP version 5.3.29 Database is on MSSQL.
5 years ago
Further details....
The workflow that was triggered shows an entry in Process Audit section with Status - Running. However, I do not receive the email with the attachment. Repeating the above process creates another entry in Process Audit section with Status as Running.
5 years ago
After debugging a bit further, I suspect the code might be breaking at the line:
$this->parse_pdftemplate($bean, $pdfTemp, $attachments);
in the file custom\modules\AOW_Actions\actions\actionSendEmailwithPDFTemplate.php
Does this module works only for sending Quotes, or sending ANY PDF document parsing Accounts/Contacts/Leads variables too?
Thanks
5 years ago
Hello Rahul It does parse Other modules and the main Module is the One which you setup in Workflow. We have not received the screenshot. Can you please check your php_error.log and share the message that you see there.
5 years ago
Hi Support,
I've added some code in my utils file to display error and the error that I received was "Fatal error: Call to undefined function mime_content_type()" in the file custom\modules\AOW_Actions\actions\actionSendEmailwithPDFTemplate.php
I've fixed this error and testing to see if the fix is working ok. I'll send you the updated file shortly. Comments are included in the code file to easily identify the changes I've made.
Cheers, Rahul
5 years ago
Hi Support,
I've sent the updated file to one of your team members on Skype.
Found another separate issue: The email that is sent out to Account/Contact/Leads that gets stored in the History sub-panel, that email doesn't include the PDF attachment in it. Please look into this issue.
Thanks, Rahul