Sending sheet data to telegram

Hi All,
I’m using a free spreadsheet extension to get data from my app to google sheet, and I want to send these data from sheet to telegram immediately whet its arrives , I used (make.com) platform to do that but there is a problem that (make) platform did not recognize the new rows added to the sheet from my app although when I copy a row and paste it again in the sheet the it works fine, but when data arrives from my app its not working ,I think there is something could we do with the extension script may solves this issue, I appreciate any one could help?

Thanks in advance.

you forgot to tell us which one… any link?

can you tell us more how you do that exactly?
any screenshot of your relevant blocks?

Taifun

1 Like

This is the script I’m using to send data to sheet

function doGet(e) {
return ManageSheet(e);
}
function doPost(e) {
return ManageSheet(e);
}

function ManageSheet(e) {

//READ ALL RECORDS

if ( e.parameter.func == “ReadAll”) {
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheets()[parseInt(e.parameter.SN)-1];
var rg = sh.getDataRange().getValues();
var outString = ‘’;
for(var row=0 ; row<rg.length ; ++row){
outString += rg[row].join(‘,’) + ‘\n’;
}
return ContentService.createTextOutput(outString).setMimeType(ContentService.MimeType.TEXT);
}

//DELETE SNNGLE RECORD

else if (e.parameter.func == “Delete”) {
var record = e.parameter.id;
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheets()[parseInt(e.parameter.SN)-1];
sh.deleteRow(parseInt(record) + 1);
return ContentService.createTextOutput(“true”);
}

//READ SNNGLE RECORD
else if ( e.parameter.func == “ReadRecord”) {
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheets()[parseInt(e.parameter.SN)-1];
var rg = sh.getDataRange().getValues();
var outString = ‘’;
outString += rg[parseInt(e.parameter.id)].join(‘**’);
return ContentService.createTextOutput(outString).setMimeType(ContentService.MimeType.TEXT);
}

//UPDATE SNNGLE RECORD Specify PoSNtion

else if (e.parameter.func == “UpdateSP”) {
var ss = SpreadsheetApp.getActive();
var sh = ss.getSheets()[parseInt(e.parameter.SN)-1];
var data = [ [ e.parameter.UpdateRecord ] ];
sh.getRange((e.parameter.CN)+(parseInt(e.parameter.id)+1)).setValues(data);
return ContentService.createTextOutput(“true”);
}

//Do not changed any parameters, because this is new script. for more information please watch this video:- https://youtu.be/dB-cfsbGbLg

//CREATE NEW RECORD
if (e.parameter.func == “Create”) {

var ss = SpreadsheetApp.getActive();

var sh = ss.getSheets()[parseInt(e.parameter.SN)-1];

var data =[e.parameter.A, e.parameter.B, e.parameter.C, e.parameter.D, e.parameter.E, e.parameter.F, e.parameter.G, e.parameter.H, e.parameter.I, e.parameter.J, e.parameter.K, e.parameter.L, e.parameter.M, e.parameter.N, e.parameter.O, e.parameter.P,e.parameter.Q, e.parameter.R, e.parameter.S, e.parameter.T, e.parameter.U, e.parameter.V, e.parameter.W, e.parameter.X, e.parameter.Y, e.parameter.Z]; 

sh.appendRow(data);

return ContentService.createTextOutput(data);

}

}

Probably the author of the exrension @AppHelper_Studio is able to help?

Alternatively try another solution to upload your data

See also FAQ Section: Google Sheets - Frequently Asked Questions - MIT App Inventor Community
Taifun

1 Like

Thanks alot, @Taifun

@AppHelper_Studio, could you support me about this issue?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.