by cyborgsolution

Workflow Email action with Dynamic PDF Template Attachment

Free 30 day trial
Try it Now

#2242 - Workflow with PDF attachment not working

Closed Bug? created by rahuljain Verified Purchase 4 years ago

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

  1. rahuljain member avatar

    rahuljain Verified Purchase

    4 years ago

    I'm using CRM version 7.6.6 and PHP version 5.3.29 Database is on MSSQL.

  2. rahuljain member avatar

    rahuljain Verified Purchase

    4 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.

  3. rahuljain member avatar

    rahuljain Verified Purchase

    4 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

  4. cyborgsolution member avatar

    cyborgsolution Provider

    4 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. rahuljain member avatar

    rahuljain Verified Purchase

    4 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

  6. rahuljain member avatar

    rahuljain Verified Purchase

    4 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

This case is public. Please leave out any sensitive information such as URLs, passwords, etc.
Saving Comment Saving Comment...