title: Issues with Triggers on Google Script
body: <p>I have the following function which works perfectly fine when I run it manually.</p>
  
  <pre><code>function LastUpdate() {
    var thisSS  = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = thisSS.getSheetByName('Roster');
    var data = Session.getActiveUser().getEmail();
    var Edit = 0;
    var time = TimeStamp();
    var Row;
    Row = findInColumn("L", data);
    Edit = checkEdits(Row);
    if (Edit == 1)
    {
      sheet.getRange(Row,20).setValue(time);
    }
  }
  </code></pre>
  
  <p>I set up a trigger manually by going to <strong>Resources -> Triggers</strong> and selected the above Function to execute <strong>onEdit</strong>. Basically, whenever a cell in the sheet is edited, I want to automatically trigger this function to execute. I am not sure what the issue is ! </p>
  
  <p>Any help would be much appreciated.</p>
  
  <p>EDIT - I tried to do this and this also does not work </p>
  
  <pre><code>function onEdit(e)
  {
  LastUpdate ()
  }
  </code></pre>