Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

c# webservice filters usage? 
 
olemansfeld
Jr. Member
 
Total Posts:  7
Joined:  2009-02-04
 

I want to retrieve a specific order using Visual Studio 2008 (VS2008) from the web-service method magento.salesOrderList(sessionId, filter);

How do I use the filter? I can’t find any examples of filterusage. I would expect that i somehow can define an attribute on the order and the value I want to filter by..

Any help is deeply appreciated!

Cheers, Ole

 
Magento Community Magento Community
Magento Community
Magento Community
 
ruupie
Jr. Member
 
Total Posts:  1
Joined:  2009-01-11
 

I don’t know abou C# but in Java I do it like this:

Filters filters = new Filters();
ComplexFilter filterOrderId = new ComplexFilter();
filterOrderId.setKey("increment_id");
filterOrderId.setValue(new AssociativeEntity("gt""100000002"));
filters.setComplex_filter(new ComplexFilter[] { filterOrderId });

the “gt” stands for greater then, see this link for a list of possible comperators.

Hope this helps, good luck! wink

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