src/extensions/appscript-extension.js
/**
   * afterRetrieve - Update modifiedDate for the Result, and send analytics
   *     signals to Google Analytics.
   * @param {object} context Context object that contains the processed Result.
   */
Update modifiedDate for the Result, and send analytics
signals to Google Analytics.
@param {object} context Context object that contains the processed Result.
Update modifiedDate for the Result and send analytics signals to Google Analytics . @param { object } context Context object that contains the processed Result .
afterRetrieve(context, options) {
    let result = context.result;
    if (result.modifiedTimestamp) {
      result.modifiedDate = AppScriptHelper.getFormattedDate(
          new Date(result.modifiedTimestamp), this.userTimeZone,
          'MM/dd/YYYY HH:mm:ss');
    }
    if (result.status === Status.RETRIEVED) {
      this.trackAction(TrackingType.RESULT, this.spreadsheetId, result);
    }
  }
afterRetrieve ( context , options ) { let result = context . result ; if ( result . modifiedTimestamp ) { result . modifiedDate = AppScriptHelper . getFormattedDate ( new Date ( result . modifiedTimestamp ) , this . userTimeZone , 'MM/dd/YYYY HH:mm:ss' ) ; } if ( result . status === Status . RETRIEVED ) { this . trackAction ( TrackingType . RESULT , this . spreadsheetId , result ) ; } }
afterRetrieve - Update modifiedDate for the Result, and send analytics
     signals to Google Analytics.
afterRetrieve - Update modifiedDate for the Result and send analytics signals to Google Analytics .
// Format modifiedDate // Send retrieved action to Google Analytics.