D17339
11/07/2019, 1:36 PMSandii
11/07/2019, 3:05 PMvar mySearch = search.load({
id: 'customsearch_my_so_search'
});
var resultSet = mySearch.run();
var firstResult = resultSet.getRange({
start: 0,
end: 1
})[0];
// get the value of the second column (zero-based index)
var value = firstResult.getValue(resultSet.columns[1]);
log.debug({
title: 'Value:',
details: value
});Sandii
11/07/2019, 3:06 PMresult.getValue() call is overloaded to accept either the id of the column or the index from the columns array