ericbirdsall
01/17/2022, 5:57 PMSandii
01/17/2022, 5:59 PMericbirdsall
01/17/2022, 6:17 PMericbirdsall
01/17/2022, 6:40 PMSandii
01/17/2022, 7:15 PMcontext.key
in your Map stage should be the same as a the row number of the search resultericbirdsall
01/17/2022, 8:07 PMfunction getInputData() {
let results = [];
let mySearch = search.load({
id: 'customsearch_mr_get_pricing_from_website',
type: 'item'
});
mySearch.run().each(function (result) {
results.push(result)
return true;
});
return results;
}
ericbirdsall
01/17/2022, 8:09 PMsearch.load
portion in the getInputData function, I needed to create an empty array, loop the results and add each to the array, then return the array.
Prior to doing this, context.key
was equal to the internal Id of the item for each search result (not what I was needing)