I have not been that deep in the workflow code. Thank you for sharing that idea.<div><br></div><div>PD<br><br><div class="gmail_quote">On Tue, Dec 18, 2012 at 9:00 AM, Adam Heinz <span dir="ltr">&lt;<a href="mailto:amh@metricwise.net" target="_blank">amh@metricwise.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">We have a workflow that emails customers the day before their appointment that has<div><br></div><div><div>$wm = new VTWorkflowManager($adb);</div>
<div>$wf = $wm-&gt;newWorkflow(&#39;Events&#39;);</div><div>$wf-&gt;executionCondition = VTWorkflowManager::$ONCE;<br>
</div></div><div>...</div><div><div>$wm-&gt;save($wf);</div></div><div><br></div><div><div>$tm = new VTTaskManager($adb);</div><div>$task = $tm-&gt;createTask(&#39;VTEmailTask&#39;, $wf-&gt;id);<br></div><div>$task-&gt;trigger = array(</div>

<div><span style="white-space:pre-wrap">        </span>&#39;days&#39; =&gt; -1,</div><div><span style="white-space:pre-wrap">        </span>&#39;field&#39; =&gt; &#39;date_start&#39;,</div><div>);</div></div><div>...</div><div>
<div>$tm-&gt;saveTask($task);</div></div><div><br></div><div>Based on this, it seems to me like it would be easy enough to email them once... so write a yearly cron job to reset the sent flag for all VTEmailTasks of that workflow?</div>

<div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On Mon, Dec 17, 2012 at 10:52 PM, Petar Dimov <span dir="ltr">&lt;<a href="mailto:phdimov@gmail.com" target="_blank">phdimov@gmail.com</a>&gt;</span> wrote:<br>

</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">Hi,<div><br></div><div>I have been tasked to make happen a simple feature with Vtiger. </div>
<div><br></div><div>Send an email on our customer&#39;s birthdays. </div>
<div><br></div><div>Just realized I can&#39;t really accomplish that with workflows. ( Set a condition if customer birthdate is today) to email them.</div>
<div><br></div><div>Is there any non coding way to do this or I have to write a separate cron job for that?<span><font color="#888888"><br clear="all"><div><br></div>-- <br>Best Regards,<br><br>Petar Dimov<br>
<br><br>
</font></span></div>
<br></div></div>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
<a href="http://www.vtiger.com/" target="_blank">http://www.vtiger.com/</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br><br>Petar Dimov<br><br><br>
</div>