Developer forum

Forum » Ecommerce - Standard features » GetAllProducts only seem to return active products.

GetAllProducts only seem to return active products.

Claus Kølbæk
Claus Kølbæk
Reply

Hey

Just a small thing I ran into with the API today, I was trying to get all products and were using Dynamicweb.Ecommerce.Services.Products.GetAllProducts, however it seems to only return active products which is what I would expect GetActiveProducts to do.

I could however get it working by using GetAllProductsWithoutVariants, but wouldn't really call it a great workaround as that has other obvious limitations aswell.


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

ProductService.GetAllProducts does not look at active flag. But it does take ProductHidden into consideration.

As much as we would like to change this to be more clear - AllProducts is all products, we cannot right now because of API compatibility.

We have things exactly like this on the agenda for DW10.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum