ericbirdsall
10/20/2021, 8:00 PMfunction getInputData() {
let mySearch = search.load({
id: 'customsearch_wf_qual_pc_email_fields',
});
log.debug({
title: 'mySearch',
details: mySearch,
});
return mySearch;
}
function map(context) {
log.debug({
title: 'context',
details: context
});
}
.....
return {
getInputData: getInputData,
map: map,
summarize: summarize
};
mySearch gets logged, but context doesnt.
The search has search results and is a public search.
Any ideas why context wouldn't be getting passed into the map section?stalbert
10/20/2021, 8:05 PMericbirdsall
10/20/2021, 8:09 PMericbirdsall
10/20/2021, 8:16 PMcontext
isn't being logged. But if it has more than 1 result, context
gets logged....eblackey
10/20/2021, 8:20 PMericbirdsall
10/20/2021, 8:29 PMcontext.value
From testing, anytime the search has > 1 result, everything works as expected, but when there is only 1 result, the map function isn't called