I have a SalesOrder object that I casted from a ReadResponse like this:
SalesOrder salesOrder = ((SalesOrder) response.getRecord());
How can I access the value of customfields within the individual line items attached to the SalesOrder object?
I have this so far, and it would work perfectly if the value I needed was a regular field:
for(SalesOrderItem item: salesOrder.getItemList().getItem()){
//etc...
}
I also have access to the names/internalIDs of all custom field associated with the line item like this:
for(CustomFieldRef field: item.getCustomFieldList().getCustomField()){
_console.info(field.getScriptId() + " : " + field.getInternalId());
}
How do I use these to return values? Or am I not on the right path at all?