From 79e38ba6ddbc7d0d51246ee452821beac49bc4a9 Mon Sep 17 00:00:00 2001 From: "xiaozhe.ma" Date: Thu, 11 Jul 2024 15:25:10 +0900 Subject: [PATCH] =?UTF-8?q?=E5=80=A4=E5=A4=89=E6=9B=B4=E3=82=A4=E3=83=99?= =?UTF-8?q?=E3=83=B3=E3=83=88=E9=9D=9E=E5=90=8C=E6=9C=9F=E5=87=A6=E7=90=86?= =?UTF-8?q?=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/kintone-addins/src/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugin/kintone-addins/src/index.ts b/plugin/kintone-addins/src/index.ts index 0a740e8..c4eab19 100644 --- a/plugin/kintone-addins/src/index.ts +++ b/plugin/kintone-addins/src/index.ts @@ -42,7 +42,12 @@ $(function (){ const flow=ActionFlow.fromJSON(flowinfo.content); if(flow!==undefined){ const process = new ActionProcess(event.type,flow,event); - process.exec(); + process.exec().then((res)=>{ + const record = event.record; + kintone.app.record.set({record}); + }).catch((err)=>{ + console.error(err); + }); } return event; }); @@ -58,7 +63,7 @@ $(function (){ await process.exec(); } const record = event.record; - kintone.app.record.set({record}) + kintone.app.record.set({record}); }); }); }