Trying to create a macro that refreshes a bigquery data connection.
Have tried to record a macro, starting on a different tab, clicking into the tab with the data connector and clicking refresh.
function Refresh2() {
var spreadsheet = SpreadsheetApp.getActive();
spreadsheet.getRange('F3').activate();
spreadsheet.setActiveSheet(spreadsheet.getSheetByName('Extract 2'), true);