Hello,
I am trying to create a workflow to send an email and create a new task based on a campaign email being viewed or click-thru link being click.
When I create the workflow based on new record I see an error in sugarcrm.log with SQL statement. the SQL is referring to date_entered when the campaign_log table uses activity_date.
Query Failed: SELECT campaign_log.id AS id FROM campaign_log WHERE campaign_log.activity_type = ‘viewed’ AND campaign_log.date_entered > ‘2015-01-12 23:01:33’ AND NOT EXISTS (SELECT * FROM aow_processed WHERE aow_processed.aow_workflow_id=‘69d6cbf8-3c7b-b753-06e6-54b452d7f3fc’ AND aow_processed.parent_id=campaign_log.id AND aow_processed.status = ‘Complete’ AND aow_processed.deleted = 0) AND campaign_log.deleted = 0 : MySQL error 1054: Unknown column ‘campaign_log.date_entered’ in ‘where clause’
Anyone know how I can solve this? Where is the SQL statement being generated from? Maybe I could alter that file.
Thanks,
Jeff