Milcho Dimkov
09/03/2021, 12:57 PMSUM(formulacurrency)
, e.g.:
"SUM(formulacurrency)":"745.56"
and I have several similar colums
The easiest solution for me would be to iterate through the search and set the labels as the key instead of SUM(formulacurrency)
, however this way I'll loose the main advantage of M/R where I can directly return a saved search irrespective of the number of records.
Any ideas?scottvonduhn
09/03/2021, 2:12 PMscottvonduhn
09/03/2021, 2:18 PMbattk
09/03/2021, 8:48 PMbattk
09/03/2021, 8:49 PMscottvonduhn
09/03/2021, 9:09 PMformulacurrency
column. Using different suffixes is definitely required in that case. However, you can only customize the suffix if defining the saved search in code, so you will likely want to do that, and not load an existing saved search by id. Alternatively, you might be able to re-define this as a SuiteQL query, since Map/Reduce scripts support returning SuiteQL from getInputData. Handling the SuiteQL results in the map stage is quite different from a saved search, though.battk
09/03/2021, 9:20 PM