{ "kind": "open-flow-workflow", "version": 1, "name": "Get Monday Board Details", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_0e8cf152bf93e16d": { "name": "Enter board ID", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "boardId" } ] }, "n_800d698acd9d96a6": { "inputs": { "boardId": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_0e8cf152bf93e16d", "output": "boardId" } ] } }, "name": "Prepare board query", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string", "minLength": 1 }, "nullable": false, "handle": "boardId" } ], "outputs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "body" } ], "name": "Prepare board query", "moduleId": "n_763a0ceed11bfd99", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_b9cb103c69a4bbb7": { "inputs": { "endpoint": { "kind": "value", "value": "https://api.monday.com/v2" }, "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_800d698acd9d96a6", "output": "body" } ] } }, "name": "Read the board", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "endpoint" }, { "jsonSchema": {}, "nullable": true, "handle": "body" } ], "outputs": [ { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": "string" } }, "nullable": false, "handle": "headers" }, { "jsonSchema": { "const": "base64" }, "nullable": true, "handle": "bodyEncoding" } ], "name": "Read the board", "executor": { "providerId": "monday", "method": "POST", "query": { "mode": "fields", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "json", "kind": "connector-proxy" } } }, "n_a14db0a547841549": { "inputs": { "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_b9cb103c69a4bbb7", "output": "body" } ] }, "statusCode": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_b9cb103c69a4bbb7", "output": "statusCode" } ] } }, "name": "Check the response", "kind": "task", "task": { "inputs": [ { "jsonSchema": {}, "nullable": true, "handle": "body" }, { "jsonSchema": { "type": "integer" }, "nullable": false, "handle": "statusCode" } ], "outputs": [ { "jsonSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "nullable": false, "handle": "boards" } ], "name": "Check the response", "moduleId": "n_14584a4ab44b8be8", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_c9bf6f0ddb02aa0a": { "name": "Board details", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "nullable": false, "handle": "boards" } ], "outputMappings": { "boards": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_a14db0a547841549", "output": "boards" } ] } } } }, "edges": [ { "source": "n_0e8cf152bf93e16d", "target": "n_800d698acd9d96a6" }, { "source": "n_800d698acd9d96a6", "target": "n_b9cb103c69a4bbb7" }, { "source": "n_b9cb103c69a4bbb7", "target": "n_a14db0a547841549" }, { "source": "n_a14db0a547841549", "target": "n_c9bf6f0ddb02aa0a" } ] } }, "modules": { "n_763a0ceed11bfd99": { "name": "Prepare board query", "imports": [], "source": "export default function prepare({boardId}){if(!/^\\d+$/.test(boardId))throw Error('Enter a numeric board ID');return{body:{query:'query ($id: [ID!]) { boards (ids: $id) { id name description state board_folder_id board_kind owners { id } } }',variables:{id:boardId}}}}\n" }, "n_14584a4ab44b8be8": { "name": "Check the response", "imports": [], "source": "export default function result({body,statusCode}){if(statusCode!==200||!body||typeof body!=='object'||(Array.isArray(body.errors)&&body.errors.length)||!Array.isArray(body.data?.boards))throw Error('Monday board lookup failed');return{boards:body.data.boards}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }