Magento Forum

Filters in Customer List API v2
 
rchaves
Jr. Member
 
Total Posts:  1
Joined:  2012-11-05
 

I’m trying to get the list of the customer with customer_id greater than 76 , but the filters don’t works fine.
I’m using C# to do this and the code that i use is this:

complexFilter[] cpf = new complexFilter[1];
complexFilter mcpf = new complexFilter();
mcpf.key = “gt”;
associativeEntity mas = new associativeEntity();
mas.key = “customer_id”;
mas.value = “76”;
mcpf.value = mas;
cpf[0] = mcpf;
mf.complex_filter = cpf;
customerCustomerEntity[] soe = mservice.customerCustomerList(mlogin, mf);

I’ve a lot of customers with these criteria but i don’t obtain any result.
I’ve changed the value of mcpf.key to eq and then the filters works well, if i try to other values of the API filters, it doesn’t work.

The values that i’m using are:
from
eq
neq
like
nlike
in
nin
is
null
notnull
moreq
gt
lt
gteq
lteq
finset

I’ve looking for in Google any answer but i’ve not found any solution

Any suggestion to use well the API filters?

Thanks

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top