(Still) Can't get Target Based emails to work

Use this forum for questions regarding adoption and functionality of OpenEMM

Moderator: moderator

doubledutch
Posts: 17
Joined: Thu Aug 21, 2008 10:43 pm

(Still) Can't get Target Based emails to work

Post by doubledutch »

Hi, I'm still struggling in getting this to work using mysql. It must be me being very stuppid somewhere. The problem is that date based target groups don't appear to work.

From looking at the database it appears to me that the content of the database field:

dyn_target_tbl.target_sql

is used to create the target group. I edit that and put in there:

date_format(cust.creation_date, '%Y-%m-%d') = current_date

(Note the '-' which is the way mysql reports that field) a mysql query on the customer_1_tbl returns the relevant records but when I try to get the statistics for that target group on my entire recipient database it doesn't return any records.

What am I doing wrong? Any help would be greatly appreciated.

Thanks

Leon
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

You should use the expression

creation_date = current_timestamp
OpenEMM Maintainer
doubledutch
Posts: 17
Joined: Thu Aug 21, 2008 10:43 pm

Post by doubledutch »

Thanks ma and I tried that but when I do that and look for press the statistics button the result is zero which may be valid because at the exact time I press "statistics" I guess no-one has a record with

creation_date = current_timestamp

So how does that logic work? When is this check made?
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

This was just a corrected version of your example. We use ist for birthday mails (you need a data field with the birthday, of course) like

birthday = current_timestamp

As comparison pattern you should select MMDD without year. Hour, minute and second are never considered.
OpenEMM Maintainer
Post Reply