I have this script. It works but each user in my domain has to individually authorize it for it to work.
As domain admin, I want to deploy it across my domain for this sheet and any copy of this google sheet made.
I tried to deploy it as a Web App, but that still doesn't work.
When I try to test the web app, I get the error:
Script function not found: doGet
{
var now2 = Utilities.formatDate(new Date(), "EST", "E MMM dd, yyyy @ hh:mm a");
SpreadsheetApp.getActiveSheet().getRange("Z1").setValue("Sheet Last Modified: " +now2);
var s = SpreadsheetApp.getActiveSheet();
var r = s.getActiveCell();
if( r.getColumn() != 6 ) { //checks the column
var row = r.getRow();
var time2 = new Date();
var user = Session.getEffectiveUser();
time = Utilities.formatDate(new Date(), "EST", "E MMM dd, yyyy @ hh:mm a");
time2 = Utilities.formatDate(new Date(), "EST", "E MMM dd, yyyy");
SpreadsheetApp.getActiveSheet().getRange('Z' + row.toString()).setValue(time+" by: "+user);
SpreadsheetApp.getActiveSheet().getRange("Z2").setValue("Row Last Modified");
};
};