volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Get order by PO number

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

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

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.