ARInvoice invoice = PXSelect.Search (Graph, "INV0001"); string customerID = (string)Graph.Caches[typeof(ARInvoice)].GetValue (invoice);
PXResultsetIn this example, we select all ARInvoice records and iterate through them to retrieve the value of a custom field (usrCustomField) defined in the ARInvoice extension. Package library: Acumatica.Framework.resultset = PXSelect .Select(Graph); foreach (PXResult record in resultset) { string customField = (string)Graph.Caches[typeof(ARInvoice)].GetValue (record); }