Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Query didn't open x number of days ago

nataliec3894220
Level 2
Level 2

I'm looking to make a query where I target profiles who haven't opened ANY emails from x number of days ago.

This is to be set up as a workflow with a recurring email to entice user's to engage with our emails.

I understand that I need to query profiles that have no tracking associated to them but where I'm getting caught up is querying to 60 days ago. 

When using the simple mode for the query, it simply says "corresponds to the last 60 days", which to me means from now until 60 days ago. But I don't want to target profiles from yesterday, ONLY 60 days ago.

 

The advanced code reads as follows, though I don't fully understand it:

@logDate >= DaysAgo(60) AND @logDate < GetDate()

 

Screen Shot 2020-06-30 at 5.30.33 PM.png

 

Thanks!

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution
ramon_bisswanger
Correct answer by
Employee
Employee

The GetDate() returns current data + time.

So if run today at 4 p.m., it will consider anyone who did not open between NOW and NOW-60 days (i.e. 4 p.m. on the day which is 60 days ago).

So that shall satisfy your requirement

View solution in original post

0 Replies
ramon_bisswanger
Correct answer by
Employee
Employee

The GetDate() returns current data + time.

So if run today at 4 p.m., it will consider anyone who did not open between NOW and NOW-60 days (i.e. 4 p.m. on the day which is 60 days ago).

So that shall satisfy your requirement

View solution in original post