Quantcast
Channel: Topliners : All Content - All Communities
Viewing all articles
Browse latest Browse all 3423

Bulk API to export a list of Contacts that performed activities for a defined date range

$
0
0

Hi Jarred,

 

You can use the Bulk API to export a list of Contacts that performed activities for a defined date range. The export contains a "filter" property where you can define the activities and date ranges.

Please let me know if you need more information.

 

Thanks,

Fred

I found this post by Fred Sakr and I would like to be able to do this and the only field I can find to filter on is {{Contact.Field(C_Last_Activity_Date_Time1)} but that is not filtering anything, no matter what date I put in I get the same number of rows.  I am using the Bulk API code from github and would like to know the field to filter on to get all the contacts that have performed the emailOpen activity in the past n days.  Do I add that to the search or the filter.

 

HashMap<String, String> fields = new HashMap<String, String>();

fields.put("EmailAddress", "{{Contact.Field(C_EmailAddress)}}");

fields.put("id", "{{Contact.Id}}");

 

ExportFilter filter = new ExportFilter();

filter.filterRule = FilterRuleType.valueGreaterThanOrEqualToComparisonValue;

filter.comparisonValue = "09/09/2013";

filter.value = "{{Contact.Field(C_Last_Activity_Date_Time1)}}";

 

Export export = new Export();

export.name = "contact export";

export.fields = fields;

export.filter = filter;

export.secondsToAutoDelete = 3600;

export.secondsToRetainData = 3600;


Viewing all articles
Browse latest Browse all 3423

Trending Articles