(Sales Orders) how do I iterate through an item sublist reliably when sometimes there are line IDs/line sequence numbers greater than getLineCount? (not talking about the difference between 1-indexed lineId and 0-indexed sublist lines, but when I get a line count of 9 but there's an item with a line ID of 12)
Kris Jones
12/29/2021, 7:16 PM
Now that I think of it, I could perform a search that gets all of the items and their line IDs, then specifically iterate through that set of values - but is there a more direct way?
b
battk
12/29/2021, 7:21 PM
you dont use line ids to iterate
battk
12/29/2021, 7:21 PM
you use line ids to match to the line
battk
12/29/2021, 7:21 PM
if the line count is 9, there are 9 lines
battk
12/29/2021, 7:21 PM
with one of them having an id of 12
battk
12/29/2021, 7:24 PM
the implication here being that the id does not indicate the line count
k
Kris Jones
12/29/2021, 7:56 PM
gotcha, that makes sense, getSublistValue etc is not determined by the line ID, if I want to check the line ID I need to pull that value when I iterate through the lines using e.g., the 0-8 indices
Thank you sir!