Skip to main content
2 of 3
code format
cropredy
  • 73.3k
  • 8
  • 128
  • 284

Retriving OpenEvent Details using SubscriberKey

I'm trying to get the OpenEvent details for a specific SubscriberKey using the ExactTarget API. I have the SendID, BatchID and the SubscriberKey, the thing is that the filter of the SubscriberKey is not working. If I try to make the call with the filter for SendID I get the results(to many) but once I add the filter for the SubscriberKey the request returns nothing.

I try it on .NET and Java and I'm getting the same results.

For example I made a test using only the filter for SendID(142865) and I get these results

<br/>

ObjectID: 3374303431

EventDate: 3/4/2014 2:03:49 PM

SendID: 142865

SubscriberKey: [email protected]

BatchID: 4

<br/>

ObjectID: 3374303432

EventDate: 3/4/2014 2:03:49 PM

SendID: 142865

SubscriberKey: [email protected]

BatchID: 2

<br/>

ObjectID: 3374303433

EventDate: 3/4/2014 2:03:49 PM

SendID: 142865

SubscriberKey: [email protected]

BatchID: 1

<br/>

If I try to make a call using the filter for SubscriberKey([email protected]) I get norhing

This is my java code:

RetrieveRequest retrieveRequest = RetrieveRequest.Factory.newInstance(); <br/>
retrieveRequest.setObjectType("OpenEvent"); <br/>
retrieveRequest.setPropertiesArray(new String[] { "ObjectID", "SendID", "SubscriberKey", "BatchID" }); <br/>
<br/>
SimpleFilterPart filter = SimpleFilterPart.Factory.newInstance(); <br/>
filter.setProperty("SubscriberKey"); <br/>
filter.setSimpleOperator(SimpleOperators.EQUALS); <br/>
filter.setValueArray(new String[] { "[email protected]" }); <br/>

retrieveRequest.setFilter(filter);<br/>
.<br/>
.<br/>
.<br/>
.<br/

Please any help would be appreciate it.

Thanks.