Get order by PO number

Vote:
 

Hi,

Is there a way of getting orders by their PO numbers (PO12345) besides the GetPurchaseOrderById()? I think I can do this by searching for orders but there must be an easier way!

Thanks in advance!

/Mark

#123073
Jun 24, 2015 13:26
Vote:
 

Hi,

You can use search and pass the TrackingNumber in the SqlMetaWhere, like explained this:

http://world.episerver.com/blogs/Shannon-Gray/Dates/2012/12/EPiServer-Commerce-Order-Search-Made-Easy/ 

And:

http://world.episerver.com/blogs/Quan-Mai/Dates/2014/10/Order-searchmade-easy/

Currently, there is no built-in method for get order by PO number. 

Regards,

/Q

#123075
Jun 24, 2015 13:39
Vote:
 

Hi Quan,

Thanks for the info! I'll look into it.

/Mark

#123087
Jun 24, 2015 16:16
* 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.