Hi, I am making an attendance application for my organization, but after following many youtubers, the data from qr code that I scanned didn't appear in my google sheet. Here are my MIT app blocking
Is there any mistake I made? or any solution that you can suggest? I assumed that because my email that I used to create a sheet is an organization email, the MIT couldn't send a data to my google sheet due to company's privacy.
1 run DO IT on web.Url. do you have a & BEFORE barcode=?
2. why you add ( and ) at return result?
3. will your qr code change for each user? how do you know who scan the qrcode?
4. how to avoid user take a photo of qrcode and scan at home?
function doGet(e) {
var ss = SpreadsheetApp.openById(<SPREADSHEET ID HERE>);
var sh = ss.getSheetByName(<SHEETNAME HERE>);
var d = new Date().toLocaleString().split(", ");
var date = d[0];
var time = d[1];
var barcode = e.parameter.barcode;
sheet.appendRow([date,time.barcode]);
return ContentService.createTextOutput("OK");
}
Your GET url should look like this:
https://script.google.com/a/macros/<LONG ID HERE>/exec?barcode=[BarcodeScanner1.Result]