p
yes
n
Can you confirm the Saved Search ID?
Please make sure both of the searches are same: customsearch380
p
yes, i never changed it, also i double checked with a copy and paste to the code
n
That's weird.
Can you try .each instead of getRange and see if it prints anything.
p
good idea, ill try that
tried adding this, didnt work 😕
Copy code
var somesearch = mySearch.run().each(function(result){
            log.debug({
                title: 'Search: ', 
                details: 'Result ' + result
            })
        });
r
put return true
try like this: var somesearch = mySearch.run().each(function(result){ log.debug({ title: 'Search: ', details: 'Result ' + result }); return true; });
p
ill try, otherwise ill try use create instead of load
n
Another thought, who does this script run as. For one use it may return 9 another 0 if permission or conditions are different.