[Vtigercrm-developers] Question on Scheduled Workflows and Email Templates

Rebecca Stanek rlstanek at gmail.com
Thu Apr 30 13:39:20 GMT 2015


+1
It would be fantastic to be able to use email templates in workflow emails.
On Apr 30, 2015 6:19 AM, "Alan Lord" <alanslists at gmail.com> wrote:

> I want to write a Custom task for a Scheduled Workflow that will
> ultimately populate an Email Template and send it.
>
> I have two questions...
>
> 1. When a Workflow is a scheduled workflow, and there are no conditions,
> it looks as though the $entity record it passes into my function is simply
> the first Entity record for that module? Is that correct? Why does it even
> bother to do that?
>
> 2. Are there any examples of programatically grabbing an Email Template
> record, populating the placeholders with data and then sending? I want this
> all to happen as part of the Custom Workflow function. But I would like the
> Customer to be able to edit the template so they can make it look as they
> wish. I can't use the Send Email task because I need a very complicated
> Query to collect the information to decide even if I should be sending an
> email...
>
> TIA
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150430/eee9445c/attachment.html>


More information about the vtigercrm-developers mailing list