I’m trying to retrieve subscribers using a filter on the attribute called “FirstName” via SOAP API. “FirstName” attribute is there in the Marketing Cloud instance.
When I try to use the retrieve method which mentioned here and as below code, I get an Error saying “invalid column name”. I double check the attribute names which used in my filter, it seems correct.
APIObject[] Results;
String requestID;
String status;
RetrieveRequest rr = new RetrieveRequest();
rr.ObjectType = "Subscriber";//required
SimpleFilterPart sf = new SimpleFilterPart();
sf.SimpleOperator = SimpleOperators.equals;
sf.Property = "FirstName";
sf.Value = new String[] { "Joe" };
rr.Filter = sf;
rr.Properties = new string[] { "ID" };
status = client.Retrieve(rr, out requestID, out Results);
Are there any constrains which we cannot use the subscriber attributes as a filter or is there any convenient way to filter subscribers using attributes?