âŚfirstly, congrats to the SalesAgility and Sugar teams for such a great product! I am looking for something to replace a customised CRM solution and suiteCRM looks amazing!
I have been trying to use a AOW process to update a record when a field is updated via a csv import and it doesnât seem to be working. I was wondering if this is a limitation of the current product or if I am implementing incorrectly?
I have successfully applied my AOW process when I edit a record normally through the suiteCRM interface - so it does work. Screenshot of my rule below:
It may be that the import doesnât actually fire the âModified Recordsâ workflows. One possible workaround for this could be to switch the âRun Onâ to âAll Recordsâ and add a custom field (import_updated or something like that) which the workflow checks.
Thanks for the quick advice Jim. I just modified my workflow to run on âAll Recordsâ and tried a test on the âtitleâ field (just to see if it would work) - but same result, where the import fails to trigger the workflow, but a direct edit does. Update screen shot:
Yes - it seems to be, but now you mention it, I want to clarify a few things about the scheduler.
I thought the scheduler was only required for time based AOW? It seems that when I edit the records directly, the AOW process workflows are trigger instantly without the scheduler running
I am running the scheduler using the mentioned batch file in windows 7:
cd G:\wamp\apps\suitecrm-7.1.5-max
php.exe -f cron.php
I can see the âRun AOW WorkFlowâ processes being run in the âjob logâ history - so it seems OK, although I am getting many of the âPHP Notice: Undefined index: module inâŚâ messages in the command line window when it runs - but from what I have read on the forums - these can safely be ignored - is this true for the scheduler as well? (I have already turned off display notices in PHP so they donât appear in the UI).
Any other ideas as to why the import is not triggering the AOW?
I will switch on more detailed PHP logging in suiteCRM and see if that shows anything else during the import or the scheduler runs.
I debug this issue at code level that why workflow action doesnât trigger when import data and found that âŚ
In AOW_Workflow.php bean file there is method with name ârun_bean_flowsâ that has condition at first place which check if module name is not set OR has value âImportâ then do nothing else run the action. I attached the screenshot for reference.
If we remove this condition it works for import data as well. B)
Hi there! Canyou tell us how exactly did you adjust the source code?
Iâve tried to remove the OR condiction, but it didnât help, broke the functionality.
Any help will be appreciated, this is critical for me, thanks!
It imports, it creates all contacts and it triggers all workflows. The only inconvenience is that now I am not able to see the Import Wizard result screen (error below). I tried to find a solution with no success.
Well, for now the result screen is less important than triggering the workflows, so Iâll keep this error as is until I have to fix it. If someone knows the fix, please be kind enough to share