View Module Export Code
JSON
{
"subflows": [
{
"flow": [
{
"id": 29,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"Vertical\": [\n \"Blue\",\n \"Green\",\n \"Red\"\n ],\n \"Email\": \"provider@email.com\",\n \"Category\": \"Provider\",\n \"First name\": \"Test\",\n \"Investment Thesis\": [\n \"recbbYvTrRsFlHc0Y\"\n ],\n \"Last name\": \"Provider\",\n \"Message name\": \"Test\",\n \"Full name\": \"Test Provider\",\n \"Size\": [\n \"M\",\n \"L\"\n ],\n \"id\": \"XXX\",\n \"createdTime\": \"2024-05-10T18:36:52.000Z\"\n }\n]"
},
"metadata": {
"designer": {
"x": -637,
"y": -1417,
"name": "1. Lookup Provider Output"
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 30,
"module": "json:ParseJSON",
"version": 1,
"parameters": {
"type": ""
},
"mapper": {
"json": "[\n {\n \"Size\": [\n \"L\"\n ],\n \"Email\": \"requester1@email.com\",\n \"Category\": \"Requester\",\n \"Vertical\": [\n \"Red\"\n ],\n \"Full name\": \"Test YES Requester 1\",\n \"__IMTINDEX__\": 1,\n \"__IMTLENGTH__\": 4\n },\n {\n \"Size\": [\n \"M\",\n \"XL\"\n ],\n \"Email\": \"requester2@email.com\",\n \"Category\": \"Requester\",\n \"Vertical\": [\n \"Blue\",\n \"Yellow\"\n ],\n \"Full name\": \"Test YES Requester 2\",\n \"__IMTINDEX__\": 2,\n \"__IMTLENGTH__\": 4\n },\n {\n \"Size\": [\n \"M\"\n ],\n \"Email\": \"requester3@email.com\",\n \"Category\": \"Requester\",\n \"Vertical\": [\n \"Purple\",\n \"Black\"\n ],\n \"Full name\": \"Test No Requester 3\",\n \"__IMTINDEX__\": 3,\n \"__IMTLENGTH__\": 4\n },\n {\n \"Size\": [\n \"XL\",\n \"XXL\"\n ],\n \"Email\": \"requester4@email.com\",\n \"Category\": \"Requester\",\n \"Vertical\": [\n \"Purple\",\n \"Black\"\n ],\n \"Full name\": \"Test No Requester 4\",\n \"__IMTINDEX__\": 4,\n \"__IMTLENGTH__\": 4\n }\n]"
},
"metadata": {
"designer": {
"x": -421,
"y": -1378,
"name": "4. Iterator Output"
},
"restore": {
"parameters": {
"type": {
"label": "Choose a data structure"
}
}
},
"parameters": [
{
"name": "type",
"type": "udt",
"label": "Data structure"
}
],
"expect": [
{
"name": "json",
"type": "text",
"label": "JSON string",
"required": true
}
]
}
},
{
"id": 32,
"module": "util:SetVariables",
"version": 1,
"parameters": {},
"filter": {
"name": "conditions",
"conditions": [
[
{
"a": "{{join(29.Size; \"|\")}}",
"o": "text:pattern:ci",
"b": "\\b({{join(30.Size; \"|\")}})\\b"
},
{
"a": "{{join(29.Vertical; \"|\")}}",
"o": "text:pattern:ci",
"b": "\\b({{join(30.Vertical; \"|\")}})\\b"
}
]
]
},
"mapper": {
"variables": [
{
"name": "requester_name",
"value": "{{30.`Full name`}}"
},
{
"name": "requester_size",
"value": "{{30.Size}}"
},
{
"name": "requester_vertical",
"value": "{{30.Vertical}}"
}
],
"scope": "roundtrip"
},
"metadata": {
"designer": {
"x": -128,
"y": -1378
},
"restore": {
"expect": {
"variables": {
"items": [
null,
null,
null
]
},
"scope": {
"label": "One cycle"
}
}
},
"expect": [
{
"name": "variables",
"type": "array",
"label": "Variables",
"spec": [
{
"name": "name",
"label": "Variable name",
"type": "text",
"required": true
},
{
"name": "value",
"label": "Variable value",
"type": "any"
}
]
},
{
"name": "scope",
"type": "select",
"label": "Variable lifetime",
"required": true,
"validate": {
"enum": [
"roundtrip",
"execution"
]
}
}
],
"interface": [
{
"name": "requester_name",
"label": "requester_name",
"type": "any"
},
{
"name": "requester_size",
"label": "requester_size",
"type": "any"
},
{
"name": "requester_vertical",
"label": "requester_vertical",
"type": "any"
}
]
}
}
]
}
],
"metadata": {
"version": 1
}
}