WorkFlow issues

Hello everyone, I am having some issues with workflows. I have a workflow that I want to send an email out when a case is closed. Whenever I close the case, it does not send out an email. Attached is what my workflow looks like. Am I missing something?

Thanks in advance!

Hi Ferbla,

Are your settings in Admin -> Email Settings correct? Have you set up the cronjobs for the schedulers to run? Are your schedulers running/active? In the detail view of the workflow, does it show that the workflow has run successfully?

Thanks,

Will.

Hello Will,

I have the email settings configured, and when I click “Send Test Email” I do receive an email. I have the workflow checked to repeatedly run, but do I need a cronjob too?

Thanks,
Ferbla

This is what I have in my crontab file

          • cd /var/www/html; php -f cron.php > /dev/null 2>&1

It still doesn’t seem to make the workflows work. Am I missing something, or do I need to use a different cron?

Hi Ferbla,

Have you copied the exact command listed when you navigate to Admin -> Schedulers in SuiteCRM? Is the Scheduler Active? Has it had successful runs?

Thanks,

Will.

Hello Will,

Yes, that is the exact command from Admin->Schedulers. To be honest, I am not sure how to check if it is active or if it has ran. How would one go about finding that information?

Thanks,
Ferbla

Hi Ferbla,

There should be a scheduler in the list of schedulers called “Run AOW Workflow”. Check that this is active and has had successful runs.

Also navigate to the detail view in your WorkFlow record, is the workflow status done/running/failed?

Thanks,

Will.

Hello Will,

I checked the “Run AOW Workflow” and it says that it has never ran successfully. Is there a log I can look at to see why this is happening?

Thanks,
Ferbla

Hi Ferbla,

Is it activated? Have you set up your crontab correctly by doing “sudo crontab -e”? Have your WorkFlow jobs succeeded or failed?

Thanks,

Will.

1 Like

Hello Will,

The “sudo crontab -e” was what I needed to do. Once I did that, my workflow ran. Thank you very much for your help!

Thanks,
Ferbla

Hello,
How can i run command in window for scheduler to send email via workflow?
I am new in this please guide me to about cron job file and scheduler

Thanks: