Hi,
When using record.getLineCount in it only returns the first page of items, which is the first 500. Is there a method where you're supposed to get the pages and loop though them? I can't find anything in the documentation. Additionally, using the findSublistLineWithValue method will only finds the line if it's in the first page of items. I'm creating a bin put away record that has 24,000 items and need the api to pull all items and search through every item in the sublist. I'm I missing something here? My code is below. The snippets are part of the same script but serve two different functions.Thanks for any advice.
var inventory_adjustment = record.create({
type: record.Type.BIN_WORKSHEET,
isDynamic: true,
});
var numLines = inventory_adjustment.getLineCount({
sublistId: 'item'
});
////////////////////////------------------\\\\\\\\\\\\\\\\\\\\\\
var lineNumber = inventory_adjustment.findSublistLineWithValue({
sublistId: 'item',
fieldId: 'item',
value: itemId
});