@David Durst NetSuite record and search apis don't provide any kind of batch processing or updating. The only way to update is record-by-agonizing-record. You'd have to do a two-part solution: A search or query to implement the WHERE clause filter, then update all of the results in a loop, using the record.load/save or record.submitFields.
d
David Durst
04/29/2019, 6:52 PM
Soo....... a map reduce script 😞
s
scottvonduhn
04/29/2019, 6:53 PM
pretty much, yes. i keep asking for batch processing, but they don't seem to care about that.
d
David Durst
04/29/2019, 6:55 PM
Do you know of a method of combining ResultSets for the getInputData stage of a MR?
s
scottvonduhn
04/29/2019, 6:58 PM
I want that exact same thing. But no, not really. However, for some use cases you can use the ne Query API to create a workbook (pre-defined or dynamic) that can do multi-level joins. It cannot combine record types that don't have a shared parent or child relationship, or a direct parent-child relationship.
d
David Durst
04/29/2019, 6:59 PM
😱
s
scottvonduhn
04/29/2019, 7:00 PM
I usually have to resort to SuiteAnalytics Connect for complex data-combination queries like this, then load them into a Map/Reduce script and process the results. Definitely not an automated solution, though