reuben
09/06/2023, 7:13 PMcaleb.moore
09/06/2023, 7:27 PMlet recordId = // Add your purchase order id here
let fieldLookUp = search.lookupFields({
type: search.Type.PURCHASE_ORDER,
id: recordId,
columns: ['purchaseOrderTypeFieldId'] // Replace with the field id for PO type
});
let purchaseOrderType = fieldLookUp.purchaseOrderTypeFieldId;
caleb.moore
09/06/2023, 7:30 PMlet recordId = // Add your purchase order id here
let fieldLookUp = search.lookupFields({
type: search.Type.PURCHASE_ORDER,
id: recordId,
columns: ['custbody30'] // Replace with the field id for PO type
});
let purchaseOrderType = fieldLookUp.custbody30;
Jesper M
09/06/2023, 7:43 PMreuben
09/06/2023, 9:48 PM