commit f86e14fa655685f2e45a41e47c3ddcd14a6b9c32 Author: ridge0212 Date: Sat Apr 18 19:24:39 2026 +0000 feat: SeaTable List Rows flow diff --git a/main.designer.ts b/main.designer.ts new file mode 100644 index 0000000..d754139 --- /dev/null +++ b/main.designer.ts @@ -0,0 +1,14 @@ +export default { + flowId: '75ef5a17-4961-44b3-bb2b-406cc34b7ba5', + sourceHash: 'af6a79e6', + positions: { + 'a1b2c3': { x: 0, y: 6 }, + 'd4e5f6': { x: 200, y: 0 }, + '76ca4a': { x: 450, y: 0 }, + 'cfdcea': { x: 700, y: 0 }, + '5484c4': { x: 950, y: 6 }, + }, + cameraPositions: { + '75ef5a17-4961-44b3-bb2b-406cc34b7ba5': { x: 575, y: 27, zoom: 0.83 }, + }, +}; diff --git a/main.ts b/main.ts new file mode 100644 index 0000000..a7779d3 --- /dev/null +++ b/main.ts @@ -0,0 +1,30 @@ +import { flow, Message, Custom, Credential } from '@robomotion/sdk'; + +flow.create('75ef5a17-4961-44b3-bb2b-406cc34b7ba5', 'SeaTable List Rows', (f) => { + f.addDependency('Robomotion.SeaTable', '1.0.4'); + + f.node('a1b2c3', 'Core.Trigger.Inject', 'Start', {}) + .then('d4e5f6', 'Robomotion.SeaTable.Connect', 'Connect SeaTable', { + optCredentials: Credential({ + vaultId: 'be60cc83-6cd1-453c-a50b-498c58e4fc26', + itemId: '82d20666-415d-4510-83ab-3437021da70c', + }), + outClientID: Message('client_id'), + }) + .then('76ca4a', 'Robomotion.SeaTable.Rows.List', 'List Rows', { + inClientID: Message('client_id'), + inTableName: Custom('Table1'), + outRows: Message('rows'), + outCount: Message('count'), + }) + .then('cfdcea', 'Core.Programming.Function', 'Format Data', { + outputs: 1, + func: `var data = JSON.stringify(msg.rows, null, 2); +var header = "SeaTable rows (" + msg.count + "):"; +msg.log_text = header + data; +return msg;`, + }) + .then('5484c4', 'Core.Flow.Log', 'Log Rows', { + inText: Message('log_text'), + }); +}).start();