{ "kind": "open-flow-workflow", "version": 1, "name": "Search OneDrive for Excel Workbooks", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_13a911828adf44dd": { "name": "Search OneDrive", "kind": "start", "inputDefs": [] }, "n_793e68a6e7643445": { "inputs": { "endpoint": { "kind": "value", "value": "/me/drive/root/search(q='.xlsx')" }, "query": { "kind": "value", "value": { "$top": 100 } } }, "name": "Find matching items", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "string" }, "nullable": false, "handle": "endpoint" }, { "jsonSchema": { "type": "object", "additionalProperties": { "type": [ "string", "number", "boolean", "null" ] } }, "nullable": true, "handle": "query" } ], "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": "Find matching items", "executor": { "providerId": "excel", "method": "GET", "query": { "mode": "object", "names": [] }, "headers": { "mode": "fields", "names": [] }, "bodyFormat": "none", "kind": "connector-proxy" } } }, "n_deef4413ec8aeefe": { "inputs": { "body": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_793e68a6e7643445", "output": "body" } ] }, "statusCode": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_793e68a6e7643445", "output": "statusCode" } ] } }, "name": "Return the results", "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": "items" } ], "name": "Return the results", "moduleId": "n_088d99771e148ba7", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_6c2e1e446e72d342": { "name": "Matching items", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "array", "items": { "type": "object", "additionalProperties": true } }, "nullable": false, "handle": "items" } ], "outputMappings": { "items": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_deef4413ec8aeefe", "output": "items" } ] } } } }, "edges": [ { "source": "n_13a911828adf44dd", "target": "n_793e68a6e7643445" }, { "source": "n_793e68a6e7643445", "target": "n_deef4413ec8aeefe" }, { "source": "n_deef4413ec8aeefe", "target": "n_6c2e1e446e72d342" } ] } }, "modules": { "n_088d99771e148ba7": { "name": "Return the results", "imports": [], "source": "export default function result({body,statusCode}){if(statusCode!==200||!body||typeof body!=='object'||!Array.isArray(body.value))throw Error('Excel search failed');return{items:body.value}}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }