Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Reporting Namespace / PageViewRepository Class / GetRecentlyViewedProducts Method / GetRecentlyViewedProducts(Int32,String) Method
The user to filter views by; pass 0 for all users
Sort expression to apply to the result set
In This Topic
    GetRecentlyViewedProducts(Int32,String) Method
    In This Topic
    Get the recently viewed products for the given user Id
    Syntax
    public IList<Product> GetRecentlyViewedProducts( 
       int userId,
       string sortExpression
    )

    Parameters

    userId
    The user to filter views by; pass 0 for all users
    sortExpression
    Sort expression to apply to the result set

    Return Value

    A list of products recently viewed by the user.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also