[{"lid":"1770405753495","ls":"10","loff":"","li_parent_id":"","li_type":"rd","li_title":"\u0422\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0440\u0430\u0437\u0434\u0435\u043b \u041c\u0420\u0420)","li_radcb":"rb","li_nm":"\u0422\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0440\u0430\u0437\u0434\u0435\u043b \u041c\u0420\u0420)"},{"lid":"1770407106301","ls":"20","loff":"","li_parent_id":"","li_type":"rd","li_title":"\u041f\u043e\u0434\u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u041c\u0420\u0420)","li_radcb":"rb","li_nm":"\u041f\u043e\u0434\u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u041c\u0420\u0420)"},{"lid":"1770407170701","ls":"30","loff":"","li_parent_id":"","li_type":"in","li_ph":"\u041f\u043e\u0434\u0442\u0438\u043f \u043e\u0431\u044a\u0435\u043a\u0442\u0430 (\u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u041c\u0420\u0420)","li_nm":"Input"},{"lid":"1770407229371","ls":"40","loff":"","li_parent_id":""}]
function doPost(e) { const data = JSON.parse(e.postData.contents); const sheet = SpreadsheetApp.getActive().getSheetByName("INPUT"); sheet.getRange("B3").setValue(data.area); sheet.getRange("B4").setValue(data.type); sheet.getRange("B6").setValue(data.k); SpreadsheetApp.flush(); // заставляет формулы пересчитаться const result = sheet.getRange("B20").getValue(); return ContentService .createTextOutput(JSON.stringify({ result })) .setMimeType(ContentService.MimeType.JSON); }