<div dir="ltr">Hello all,<div>I found a wired case that I try to understand if its a Bug or i did something Wrong. Sorry that Its long but I will try to explain my case.</div><div><br></div><div>I have two workflows is my custom module </div><div><br></div><div>1. If I don't have organization to my custom module - To run a invoke function to find my Organization and revise the record (vtws_revise) with new Organization 

 (and clear X field as will explain below)

 </div><div>The workflow set to run if organization is empty</div><div><br></div><div>2. If i have an Organization or its replace I need  to update X field data</div><div>this workflow set to run if: </div><div>      organization if not empty and </div><div>      X field is empty Or organization is change</div><div><br></div><div>So in my case the second workflow needs to run after the first one (organization is changed).</div><div><br></div><div>When I Update/Clear Organization in The record in GUI everything run as I expect But...</div><div><br></div><div>If I have a record with no Organization the first workflow trigger and if its found an organization its revise the record and then the workflow run again and entering to Loop (like i don't have Organization even that I revise the organization).</div><div>try to change <span style="color:rgb(0,0,0);font-family:Verdana,Geneva,Helvetica,Arial,sans-serif;font-size:13.44px">$VTIGER_BULK_SAVE_MODE = true but than second workflow didn't run. </span></div><div>I had a workaround code in my first workflow to check if I have Organization in DB and stop the run if Yes (I found that in DB i get value to organization but not in entityData)</div><div>But then the agin second workflow didn't run - even that my Organization is full and X field is Empty (done it in my revise record) - If i will had any update in gui to the record its will run OK.</div><div></div><div><br></div><div>So I understand that after revise record the wotkflow trigger with the Old entityData and not the new one.</div><div><br></div><div>  I had in my first workflow call the second workflow after add set to the entityData and its work But i don't think it Ok that revise  record don't trigger the workflow with the new data<br></div><div><br></div><div>Thank you for all you support,</div><div>Omri</div><div><br></div><div><br></div><div><br><div><br></div></div></div>