<div dir="ltr"><div><font face="arial, sans-serif">First, Hope I replay cor<font color="#000000" style="background-color:rgb(255,255,255)">rect to this post (</font><a href="http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tc23745.html">http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tc23745.html</a>)</font></div><div><font face="arial, sans-serif">I had problem to replay in the prev post I done.</font></div><div><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif"><br></font></div><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">Alan thanks for your answer.</font><div><div style="font-size:14px;line-height:19px;white-space:pre"><div style=""><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">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,</font></div><div style=""><font color="#000000" style="background-color:rgb(255,255,255)" face="arial, sans-serif">and its work for me. Hope I didn't dane something  that can harm my import flow.</font></div><div style=""><font color="#000000" style="background-color:rgb(255,255,255)"><br></font></div></div></div></div><div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 5, 2020 at 11:26 AM Alan Lord (News) [via vtiger CRM] <<a href="mailto:ml%2Bs2324883n23746h14@n4.nabble.com" target="_blank">ml+s2324883n23746h14@n4.nabble.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">

        The vtiger.batchevent.save isn't triggered after import:
<br><br><a href="https://code.vtiger.com/vtiger/vtigercrm/issues/955" rel="nofollow" target="_blank">https://code.vtiger.com/vtiger/vtigercrm/issues/955</a><br><br>Probably your best bet is to have your custom module store a "flag" of 
<br>some kind in the database and then create a Scheduled (cron) Task to 
<br>check it at a suitable interval and then act if necessary.
<br><br>HTH
<br><br>Al
<br><br><br>On 05/11/2020 08:16, omri yona wrote:
<div><br>> Hello all,
<br>> I use in my custommodule the createrecords function to build my unic 
<br>> import flows. Its work great, but after importing the record I need to 
<br>> trigger my modules set workflows.  I know i can use 
<br>> vtiger.entity.aftersave and vtiger.batchevent.save but I want to be able 
<br>> set workflow by admin and not by developer.
<br>> Does anyone know how I can trigger my workflows (need to run the 
<br>> condition test and run).
<br>> 
<br>> Thank you for your support,
<br>> Omri
<br>> 
<br>> _______________________________________________
<br>> <a href="http://www.vtiger.com/" rel="nofollow" target="_blank">http://www.vtiger.com/</a><br>> 
</div><br><br>_______________________________________________
<br><a href="http://www.vtiger.com/" rel="nofollow" target="_blank">http://www.vtiger.com/</a>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        <div style="color:rgb(68,68,68);font:12px tahoma,geneva,helvetica,arial,sans-serif">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tp23745p23746.html" target="_blank">http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-run-modules-workflows-after-import-tp23745p23746.html</a>
        </div>
        <div style="color:rgb(102,102,102);font:11px/1.5em tahoma,geneva,helvetica,arial,sans-serif;margin-top:0.4em">
                
                To unsubscribe from vtiger CRM, <a href="http://vtiger-crm.2324883.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2&code=b21yaS55b25hQGdtYWlsLmNvbXwyfC0xODc1MjMxMzE5" target="_blank">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" target="_blank">NAML</a>
        </div></blockquote></div></div>