[Vtigercrm-developers] run modules workflows after import

omri yona omri.yona at gmail.com
Thu Nov 5 14:09:55 GMT 2020


First, Hope I replay correct to this post (
http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tc23745.html
)
I had problem to replay in the prev post I done.

Alan thanks for your answer.
I set the flag $VTIGER_BULK_SAVE_MODE to be false in my createRecords
function and return it to the previous status in the end,
and its work for me. Hope I didn't dane something that can harm my import
flow.



On Thu, Nov 5, 2020 at 11:26 AM Alan Lord (News) [via vtiger CRM] <
ml+s2324883n23746h14 at n4.nabble.com> wrote:

> The vtiger.batchevent.save isn't triggered after import:
>
> https://code.vtiger.com/vtiger/vtigercrm/issues/955
>
> Probably your best bet is to have your custom module store a "flag" of
> some kind in the database and then create a Scheduled (cron) Task to
> check it at a suitable interval and then act if necessary.
>
> HTH
>
> Al
>
>
> On 05/11/2020 08:16, omri yona wrote:
>
> > Hello all,
> > I use in my custommodule the createrecords function to build my unic
> > import flows. Its work great, but after importing the record I need to
> > trigger my modules set workflows.  I know i can use
> > vtiger.entity.aftersave and vtiger.batchevent.save but I want to be able
> > set workflow by admin and not by developer.
> > Does anyone know how I can trigger my workflows (need to run the
> > condition test and run).
> >
> > Thank you for your support,
> > Omri
> >
> > _______________________________________________
> > http://www.vtiger.com/
> >
>
>
> _______________________________________________
> http://www.vtiger.com/
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tp23745p23746.html
> To unsubscribe from vtiger CRM, click here
> <http://vtiger-crm.2324883.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=b21yaS55b25hQGdtYWlsLmNvbXwyfC0xODc1MjMxMzE5>
> .
> NAML
> <http://vtiger-crm.2324883.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20201105/06e28f0a/attachment.html>


More information about the vtigercrm-developers mailing list