Query products by department

To query products by department, you must perform the following:

  1. Get an instance of the CatalogManager object.
  2. 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

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?

Next article

Query all products