Query wish lists

Query a single wish list

To query a single wish list, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish list.
    To get the wish list, you must either call the GetWishlist method and pass the ID of the wish list as an argument, or call the GetWishlists method and filter the collection by the desired criteria (e.g. by title).

Use the following samples to query a single wish list by ID and by title:

Query a wish list by ID

Query a wish list by Title

Query a wish list by user

To query a wish list by user, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish list.
    To get the wish list, you must call the GetWishlistForUser method and pass the ID of the user as an argument.

Use the following sample to query a wish list by user:

Query all wish lists

To query all wish lists, you must perform the following:

  1. Get an instance of the manager.
    Get an instance of the OrdersManager object.
  2. Get the wish lists.
    To get the wish lists, you must call the GetWishlists method.

Use the following code sample to query all wish lists:

Increase your Sitefinity skills by signing up for our free trainings. Get Sitefinity-certified at Progress Education Community to boost your credentials.

Web Security for Sitefinity Administrators

The free standalone Web Security lesson teaches administrators how to protect your websites and Sitefinity instance from external threats. Learn to configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.

Foundations of Sitefinity ASP.NET Core Development

The free on-demand video course teaches developers how to use Sitefinity .NET Core and leverage its decoupled architecture and new way of coding against the platform.

Was this article helpful?

Next article

Modify wish lists