function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Arbab HassanArbab Hassan 

How can I also filter based on the date the email was sent to the subscriber?

Currently, we query for OpenEvents using a filter on the EventDate.  How can I also filter based on the date the email was sent to the subscriber?  For example, I want to query for OpenEvents from within the past week, but exclude any for emails that were sent over a month ago.
 
Lokeswara ReddyLokeswara Reddy
Hi Arbab,

I do see a risk with filtering the records based on email sent date, you may probably have events where there are no emails sent at all.
I would query last week open events and then loop through all the records to filter events for which email has been sent in last 30 days.

Lokesh