Abhyuday Luthra
01/10/2024, 6:33 PM// Load the Vendor Prepayment Application
var vendorPrepaymentApplication = record.load({
type: record.Type.VENDOR_PREPAYMENT_APPLICATION,
id: vendorPrepaymentApplicationId
});
vendorPrepaymentApplication.selectLine({
sublistId: 'bill',
line: 0
});
vendorPrepaymentApplication.setCurrentSublistValue({
sublistId: 'bill',
fieldId: 'amount',
value: depositAmount // Update amount applied to Bill
});
vendorPrepaymentApplication.commitLine({
sublistId: 'bill'
}); // Commit Current Line
// Save the Vendor Payment
var restletOutput = vendorPrepaymentApplication.save();
But I'm getting this error: "Cannot find function selectLine in object standard record."
I've checked the docs and selectLine is definitely a function for vendorPrepaymentApplication
. Am I doing something wrong?battk
01/10/2024, 6:37 PMAbhyuday Luthra
01/10/2024, 6:40 PM