[Vtigercrm-developers] Workflow Loop
Vikas Jain
vikas at vtiger.com
Wed Feb 25 06:58:06 GMT 2015
Alan,
Instead of calling save, use saveentity that will not trigger the workflows
again.
On 24 February 2015 at 16:37, Alan Lord <alanslists at gmail.com> wrote:
> vtiger 6.2.
>
> I have a custom Workflow function that I want to be triggered each time
> the record is saved.
>
> This function retrieves data from external sources and updates values in
> the module's record.
>
> In the workflow function I am creating a recordModel object, set(ting) the
> field values I want, then calling a recordModel->save();
>
> The trouble is, this save() action is triggering the workflow again, and
> again, and again, and again, and again....
>
> I've not had this problem before as I've tended to use direct database
> queries but am trying to do it the "right way". Clearly something is not
> quite right...
>
> Is there a flag I can set to stop this workflow propagation?
>
> Al
>
> _______________________________________________
> http://www.vtiger.com/
>
--
Regards
Vikas
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150225/45a540b7/attachment-0001.html>
More information about the vtigercrm-developers
mailing list