"Hi, thanks for watching! Please like and subscribe to our TH-cam channel." "If you're interested in this code, please DM me at promotion@outrightcrm.com."
@@failurenotsuitable9115 function doGet(req) { var doc = SpreadsheetApp.getActiveSpreadsheet(); var sheet = doc.getSheetByName('sheet1'); var values = sheet.getDataRange().getValues(); var output = []; for (var i = 0; i < values.length; i++) { if (i == 0) { continue; } var row = {}; // Create a new row object for each row for (var j = 0; j < 100; j++) { if (!values[i][j]) { break; } row[values[0][j]] = values[i][j]; } output.push(row); // Push the row object to the output array delete row; } return ContentService.createTextOutput(JSON.stringify({ data: output })).setMimeType(ContentService.MimeType.JSON); }
I just got the access to the file. This was very helpful and a faster method to fetch data from sheets in a script. Thank you!
Thanks for watching.
Approved!
Did you get this script code ,
Can you send me
thank you so much
Thanks for watching! Please like and subscribe to our TH-cam channel
this is brilliant
Where is the code?
Thanks for watching!
Script URL: docs.google.com/document/d/1fEsTu56Iynm6e2xQiiuJdndjGsybZpv0DfIHSd80NAE/edit?usp=sharing
where is the code buddy. your document is protected
Thanks for watching!
Script Code: docs.google.com/document/d/1fEsTu56Iynm6e2xQiiuJdndjGsybZpv0DfIHSd80NAE/edit?usp=sharing
Did you get this script code ,
Can you send me
Thanks for the walkthrough, but we won't be able to do much when the file with the code you are linking to is private. Please unrestrict.
"Hi, thanks for watching! Please like and subscribe to our TH-cam channel."
"If you're interested in this code, please DM me at promotion@outrightcrm.com."
Gracias ☺
Thanks for watching! Please like and subscribe to our TH-cam channel
make the file public
Did you get this script code ,
Can you send me
@@failurenotsuitable9115
function doGet(req) {
var doc = SpreadsheetApp.getActiveSpreadsheet();
var sheet = doc.getSheetByName('sheet1');
var values = sheet.getDataRange().getValues();
var output = [];
for (var i = 0; i < values.length; i++) {
if (i == 0) {
continue;
}
var row = {}; // Create a new row object for each row
for (var j = 0; j < 100; j++) {
if (!values[i][j]) {
break;
}
row[values[0][j]] = values[i][j];
}
output.push(row); // Push the row object to the output array
delete row;
}
return ContentService.createTextOutput(JSON.stringify({ data: output })).setMimeType(ContentService.MimeType.JSON);
}