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# complex filter category_ids
 
erik89
Jr. Member
 
Total Posts:  2
Joined:  2012-09-26
 

Hello,

I’m working in Magento API v2, in C#. I’m trying to retrieve products belonging to certain category ids, using a complex filter.
However, I don’t know what the value of my associative entity should be when filtering category_ids because the value that I want to look at is an element of a string array. (or maybe I’m using the wrong key?)

I’ve found a lot of solutions for PHP, but none so far for C#.

My code is as follows:

filters f = new filters();
f.complex_filter = new complexFilter[]
{
    
new complexFilter()
    
{
        key 
"category_ids",
        
value = new associativeEntity
        {
            key 
"in",
            
value "???"
        
}
    }
}
;

catalogProductEntity[] result;

result this.client.catalogProductList(this.sessionIdf"default");
 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top