Edgar Valdes
12/04/2023, 3:00 PMerictgrubaugh
12/04/2023, 3:10 PMSearch
Object, then you don't need to page; the next stage will be called on each of the results.Edgar Valdes
12/04/2023, 3:52 PMEdgar Valdes
12/04/2023, 3:52 PMMike Robbins
12/04/2023, 4:12 PMreturn {
type: 'suiteql',
query: suiteQL,
params: [271]
};
Edgar Valdes
12/04/2023, 4:16 PMEdgar Valdes
12/04/2023, 4:17 PMerictgrubaugh
12/04/2023, 4:35 PMdefine([], () => {
function getInputData() {
return {
type: 'suiteql',
query: 'SELECT * FROM customrecord_sma_config'
}
}
function reduce(context) {
log.debug({ title: 'result=', details: context.values.map(JSON.parse) })
}
return { getInputData, reduce }
});
erictgrubaugh
12/04/2023, 4:35 PMerictgrubaugh
12/04/2023, 4:50 PMEdgar Valdes
12/04/2023, 5:51 PMEdgar Valdes
12/04/2023, 5:52 PMWatz
12/04/2023, 6:03 PMerictgrubaugh
12/04/2023, 6:05 PMgetInputData
thenWatz
12/04/2023, 6:07 PMShawn Talbert
12/04/2023, 6:11 PMmap
- indeed in my experience map
will not even be called until the search in getInputData()
has completed entirely.Shawn Talbert
12/04/2023, 6:13 PMmap
invocations 🙂Watz
12/04/2023, 6:16 PMShawn Talbert
12/04/2023, 6:19 PMShawn Talbert
12/04/2023, 6:59 PMShawn Talbert
12/04/2023, 7:00 PMWatz
12/04/2023, 7:01 PM