Hello,
We wanted to develop some custom code that retrieves a list of products from product-ids, filtered on the current users assortment.
To implement this we tried using the ProductService.GetProductById and ProductService.GetByProductIDs with the "useAssortments" flag on true, but both functions seem to ignore the assortment and give back any product you request.
To hack around this we tried to use ProductService.GetActiveProducts with the "useAssortments" flag on true, but this function plain crashes with an SQL error.
Final solution was to use the GetAllProducts call with the "useAssortments" flag on true, this one works AND filters on the assortment of the current user. Then we next filter our list of productIds with a check if they exist in the result of the GetAllProducts call.
Could you look into the GetProductById, GetByProductIDs and GetActiveProducts api functions and fix them.
Greets Hans