feat: SeaTable List Rows flow
This commit is contained in:
commit
f86e14fa65
14
main.designer.ts
Normal file
14
main.designer.ts
Normal file
@ -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 },
|
||||
},
|
||||
};
|
||||
30
main.ts
Normal file
30
main.ts
Normal file
@ -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();
|
||||
Loading…
x
Reference in New Issue
Block a user