I need to find certain information about a customer from a sales order.
1. Where do I find the delivery address for a sales order (I assume it is stored with customer information). I would need the street name and number, city, state, zip code, and country. I already have the recId for the lineItem. Is there a field in the lineItem that can use to access the table where the delivery information is? Something along the lines of:
RecID_for_deliveryInformation = lineItem.deliveryInfromationRecID; //pull recID for table where delivery info is
public static SalesLine findByRecId(RecId _recID)
{
DeliveryInformation addressInfoLine; //create instance of the table that contains the info
select firstonly addressInfoLine
where addressInfoLine.RecId == _RecID_for_deliveryInformation; //pass the recID found from lineItem
return addressInfoLine;
}
If not, can someone point me in the right direction as to how to do this?
2. Where can I find the ship from information for that same line item?
I appreciate any information that is provided, thank you.