SaaS CMS has officially launched! Learn more now.

Get IPurchaseOrder by OrderNumber / TrackingNumber



I saw this post from back in 2012 (
But I can still, in EPiServer 10, not find a better way than searching through the

"OrderContext.Current.FindPurchaseOrders(parameters, searchOptions);" method or the getting purchase orders by its  CustomerId and name

"orderRepository.Load(CustomerContext.Current.CurrentContactId, "Default");"

Is there implemented a way to get an IPurchaseOrder by its OrderNumber / TrackingNumber or is it planned?


Mads Swensson

Edited, Dec 29, 2016 10:14


There is still no implemented way to load an order by the tracking number - technically the tracking number is not required to be unique in Episerver Commerce (even though it should). However this is a valid feature request and we will look into this to see if we can improve the situation.



Dec 29, 2016 10:30

Thanks for the reply.

Is there any way to keep myself updated on the point?


Mads Swensson

Dec 29, 2016 10:55

I will update it here when we have more information to share :)

Dec 29, 2016 11:34

Great, thanks! 

Dec 29, 2016 12:33

This will be included in Commerce 10.2.2, which will be available later today (or probably tomorrow) :) 

Jan 09, 2017 11:25

Fantastic news!

Already looking forward to undoing my workaround! :) 

Thanks for the awesome support! 


Edited, Jan 09, 2017 12:59
Jan 09, 2017 13:21

This bug fix is currently available in Update 145 (Commerce 10.2.2).

Jan 11, 2017 17:34
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* 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.