What is the correct `FieldId` to access the unit p...
# suitescript
n
What is the correct
FieldId
to access the unit price for a given Price Level?
Here is what I have so far
Copy code
var subLineCount = itemRecord.getLineCount({
    sublistId: "price1",
});
for (var subLine = 0; subLine < subLineCount; subLine++) {
    var selectedLine = itemRecord.selectLine({
    sublistId: "price1",
    line: subLine,
});
var priceLevel = itemRecord.getCurrentSublistValue({
    sublistId: "price1",
    fieldId: "pricelevel",
    line: subLine,
});
var priceLevelName = itemRecord.getCurrentSublistValue({
    sublistId: "price1",
    fieldId: "pricelevelname",
    line: subLine, 
});
var priceAmount = itemRecord.getCurrentSublistValue({
    sublistId: "price1",
    fieldId: "unitprice",  // Does not work
    line: subLine,
});
b
n
Excellent, Thank you