RE: Removeline function is not working
Answered
I have created a Sales Order and I want to remove one line from the Sales Order using the subscript , I am using the below code
=========================================
var ObjRec = context.currentRecord;
ObjRec.removeLine({
sublistId: ‘item’,
line: ‘1’,
ignoreRecalc: true
});
=========================================
Pl suggest.
Hi,
You wouldn’t normally put quotes around 1 but that shouldn’t cause the problem.
What is your “context” here? i.e. script / entry point / etc?
Thanks,
Chris