KnotKnick
01/11/2022, 3:33 PMgetInputData
phase of the map-reduce function, I am getting the data as an array of objects like this:
[{"invoiceid":"12345","custemail":"<mailto:testemail@gmail.com|testemail@gmail.com>"}, {"invoiceid":"67890","custemail":"<mailto:useremail@gmail.com|useremail@gmail.com>"}]
I am not able to extract these data either in the map or reduce stage, is there any massaging needed to this data before passing on to the next phase?Dmitry Masanov
01/11/2022, 3:35 PMcreece
01/11/2022, 4:06 PMcreece
01/11/2022, 4:07 PMKnotKnick
01/11/2022, 4:12 PMEric B
01/11/2022, 6:10 PMEric B
01/11/2022, 6:10 PMfor (var idx = 0; idx < context.values.length; idx++) {
var row = JSON.parse(context.values[idx]);
}NElliott
01/12/2022, 8:33 AMKnotKnick
01/12/2022, 2:56 PM