Create a gist now

Instantly share code, notes, and snippets.

@mhawksey /code.gs
Last active Oct 17, 2016

What would you like to do?
function doGet(e) {
var html = HtmlService.createTemplateFromFile('index');
html.e = e.parameter;
return html.evaluate().setTitle('Opening a row...');
}
function setCache(parameter){
var values = {
'row': parameter.row,
'header':parameter.header,
'sheet':parameter.sheet,
'id': parameter.id
};
// tried CacheService but seemed unreliabe
// CacheService.getUserCache().putAll(values, 10000); // expires in 10 seconds
PropertiesService.getUserProperties().setProperties(values)
return "https://docs.google.com/spreadsheets/d/"+parameter.id+"/edit";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment