The RNEPO class can be used to extract fields from an order it has these methods:
GetFieldsByOrder
GetFieldsByOrder($OrderId)
Parameters
OrderId: The id of the order
Return
An array of IntegrationFields
Example
RNEPO::GetFieldsByOrder(12)
//Returns an array of all the fields of the order 12
GetFieldsByItemId
public static function GetFieldsByItemId($orderId,$itemId)
Parameters
OrderId: The id of the field
ItemId: The id of the item inside the order
Returns
The IntegrationField or null if not found
GetFieldByName
public static function GetFieldByName($orderId,$fieldName,$lineItemId='')
Parameters
OrderId: The id of the order
FieldName: The name of the file
LineItemId: (Optional) the id of the line inside the order, if not specified the class will return the first occurrence of the field within the order
Return
An IntegrationField or null