Don't get lost: IMan Connectors > Magento Connector Installation Guide > Sage 300 Setup > Lookup Setup
Setting up Order Lookup
Lookup
Id: MageOrderCnt
Desc: "Count of Magento orders in Sage by MAGORDERID"
Select: "COUNT(*) as 'count'"
From: "OEORDHO"
Where: "OPTFIELD = 'MAGORDERID' AND VALUE = '%1'"