function customFunction() {
return response.getContentText()
}
function onOpen(e) {
SpreadsheetApp.getUi()
.createAddonMenu()
.addItem("Refresh all", 'refresh_all_gs')
.addToUi();
}
function refresh_all_gs(){
var cell = SpreadsheetApp.getActiveSheet().getRange('A10')
var formula = cell.getFormula()
cell.setFormula('=1')
SpreadsheetApp.flush();
cell.setFormula(formula)
}
````
However, when I click "Refresh all" from the top menu bar, the function `refresh_all_gs` is
called but the cell which has the custom function does not refresh. I wonder what I am doing
wrong here. Thanks a lot