Query products by department
To query products by department, you must perform the following:
- Get an instance of the CatalogManager object.
- Get the products.
To get the products, query all products and filter the collection using the Department value of the product. This value is of type TrackedList<Guid>. To see, if the product belongs to a department, check whether the value contains the ID of the department.
Code example: Query products by department