Module Export
You can copy and paste this module export into your scenario. This will paste the modules shown in my screenshots above.
-
Copy the JSON code below by clicking the copy button when you mouseover the top-right of the code block
-
Enter your scenario editor. Press ESC to close any dialogs. Press CTRLV (paste keyboard shortcut for Windows) to paste directly in the canvas.
-
Click on each imported module and save it for validation. You may be prompted to remap some variables and connections.
JSON
{
"subflows": [
{
"flow": [
{
"id": 1,
"module": "google-drive:getAFile",
"version": 4,
"parameters": {
"__IMTCONN__": 94797
},
"mapper": {
"select": "map",
"formatDocuments": "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"formatSpreadsheets": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"formatPresentations": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"formatDrawings": "image/jpeg",
"file": "10JXiQ5TW1737r9-4C8ZfA1ARV16uNPOC"
},
"metadata": {
"designer": {
"x": -333,
"y": -112
},
"restore": {
"parameters": {
"__IMTCONN__": {
"label": "Google Restricted",
"data": {
"scoped": "true",
"connection": "google-restricted"
}
}
},
"expect": {
"select": {
"label": "Enter manually"
},
"formatDocuments": {
"label": "MS Word Document"
},
"formatSpreadsheets": {
"label": "MS Excel"
},
"formatPresentations": {
"label": "MS PowerPoint"
},
"formatDrawings": {
"label": "JPEG"
}
}
},
"parameters": [
{
"name": "__IMTCONN__",
"type": "account:google-restricted",
"label": "Connection",
"required": true
}
],
"expect": [
{
"name": "select",
"type": "select",
"label": "Enter a File ID",
"required": true,
"validate": {
"enum": [
"map",
"value"
]
}
},
{
"name": "formatDocuments",
"type": "select",
"label": "Convert Google Documents Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.wordprocessingml.document",
"application/pdf",
"application/vnd.oasis.opendocument.text",
"text/html",
"text/plain",
"application/rtf"
]
}
},
{
"name": "formatSpreadsheets",
"type": "select",
"label": "Convert Google Spreadsheets Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",
"application/x-vnd.oasis.opendocument.spreadsheet",
"application/pdf"
]
}
},
{
"name": "formatPresentations",
"type": "select",
"label": "Convert Google Slides Files to Format",
"required": true,
"validate": {
"enum": [
"application/vnd.openxmlformats-officedocument.presentationml.presentation",
"application/pdf"
]
}
},
{
"name": "formatDrawings",
"type": "select",
"label": "Convert Google Drawings Files to Format",
"required": true,
"validate": {
"enum": [
"image/jpeg",
"image/png",
"image/svg+xml",
"application/pdf"
]
}
},
{
"name": "file",
"type": "text",
"label": "File ID",
"required": true
}
]
}
},
{
"id": 2,
"module": "regexp:Parser",
"version": 1,
"parameters": {
"pattern": "\\> .+\\s+(?<text>[\\w\\W]+?)(?=\\s+\\d+\\s+|$)",
"global": true,
"sensitive": true,
"multiline": false,
"singleline": false,
"continueWhenNoRes": false,
"ignoreInfiniteLoopsWhenGlobal": false
},
"mapper": {
"text": "{{toString(1.data)}}"
},
"metadata": {
"designer": {
"x": -89,
"y": -108
},
"restore": {},
"parameters": [
{
"name": "pattern",
"type": "text",
"label": "Pattern",
"required": true
},
{
"name": "global",
"type": "boolean",
"label": "Global match",
"required": true
},
{
"name": "sensitive",
"type": "boolean",
"label": "Case sensitive",
"required": true
},
{
"name": "multiline",
"type": "boolean",
"label": "Multiline",
"required": true
},
{
"name": "singleline",
"type": "boolean",
"label": "Singleline",
"required": true
},
{
"name": "continueWhenNoRes",
"type": "boolean",
"label": "Continue the execution of the route even if the module finds no matches",
"required": true
},
{
"name": "ignoreInfiniteLoopsWhenGlobal",
"type": "boolean",
"label": "Ignore errors when there is an infinite search loop",
"required": true
}
],
"expect": [
{
"name": "text",
"type": "text",
"label": "Text"
}
],
"interface": [
{
"type": "text",
"name": "text",
"label": "text"
},
{
"type": "uinteger",
"name": "i",
"label": "i"
},
{
"type": "any",
"name": "__IMTMATCH__",
"label": "Fallback Match"
}
]
}
},
{
"id": 3,
"module": "util:TextAggregator",
"version": 1,
"parameters": {
"rowSeparator": "\n",
"feeder": 2
},
"mapper": {
"value": "{{2.text}}"
},
"metadata": {
"designer": {
"x": 158,
"y": -107,
"messages": [
{
"category": "last",
"severity": "warning",
"message": "A transformer should not be the last module in the route."
}
]
},
"restore": {
"parameters": {
"rowSeparator": {
"label": "New row"
}
},
"extra": {
"feeder": {
"label": "Text parser - Match pattern"
}
}
},
"parameters": [
{
"name": "rowSeparator",
"type": "select",
"label": "Row separator",
"validate": {
"enum": [
"\n",
"\t",
"other"
]
}
}
],
"expect": [
{
"name": "value",
"type": "text",
"label": "Text"
}
],
"advanced": true
},
"flags": {
"stopIfEmpty": true
}
}
]
}
],
"metadata": {
"version": 1
}
}
samliew – request private consultation