Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Fetching Past 30 days Recent orders


Hi All,

I am trying to fetch past 30 days order history(similar to episerver commerce admin functionality). 

I am able to fetch for a particular customer but not able to fetch as whole.

Can you please let me know if there are any existing methods or api's related to it.

Thanks in advance.



Dec 05, 2018 14:15

You can use this parameters and options for orders modified in last 30 days

                OrderSearchParameters parameters = new OrderSearchParameters
                    SqlMetaWhereClause = $"Meta.Modified <  GETDATE() - 30 ",

                OrderSearchOptions options = new OrderSearchOptions {Namespace = "Mediachase.Commerce.Orders"};

Or use Meta.Created for orders created in last 30 days

Dec 05, 2018 14:58

Thanks for the information

Dec 06, 2018 14:26
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.