Hello with out going into detail as to why I do this I just need help solving this. I have created a script in gsheet to send sheet data to a webhook in Zoho Flow. From there I want send this data to Zoho Sheet. I currently have the following code below and I am gathering all data as I should. My problem is that this is creating new rows with the incoming data, I I would like to clear all data in the sheet and then import my incoming data, I can't seem to find a working solution. Thanks in advance!
void James_River_Gsheet_to_Zsheet(collection response)
{
dataList = response.toJSONList();
data = dataList.getJSON("data").toJSONList();
new_data = List();
for each row in data
{
new_row = Map();
for each cell in row.keys()
{
new_row.put(cell,row.getJSON(cell));
}
new_data.add(new_row);
}
// new_data;
queryData = Map();
response = zoho.sheet.createRecords("s8r9p9ad181b9971648a891b035ab77b7d03b","James River Data",new_data,queryData);
info response;
}