I'm giving SS2.0 another try and want to make sure I'm not missing something. I'm sure with the whole redesign of the API, all these objects they've introduced... surely there must be a more elegant way to iterate over sublist data that this:
var itemCount = _record.getLineCount({ sublistId: 'item' }); // Get all the ids of the items var itemIIds = []; for(var i = 0; i < itemCount; i++) { itemIIds.push(_record.getSublistValue({ sublistId: 'item', fieldId: 'item', line: i })) }I see the record.Sublist type but it lacks any line data access. I see the same old methods on the Record type that were there in SS1.0. Is it true that we don't have a modern way to access sublist data? Something like this (pseudo code) would be refreshing:var itemIIds = _.map(_record.getSublist(record.Sublist.ITEM).lines, function(line) { return line.getValue('item'); });Maybe there is a way and I'm just missing it?