{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "A544FF66-1AB1-4961-A642-2E2E4ACA170F",
    "name": "Tripletex: order to cash across client companies"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 95.17872036731228,
        "y": -301.0302061214205,
        "zoom": 0.5373745864277506
      },
      "autoSave": true,
      "descriptions": {
        "flow": "For every client company the accountant can log in to, invoices the delivered orders, sends the invoices and files the PDFs in Google Drive, and sends a soft reminder on overdue invoices. Invoices still unpaid after a soft reminder go to the accountant in Slack, who decides whether formal reminders go out.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "For every client company the accountant can log in to, invoices the delivered orders, sends the invoices and files the PDFs in Google Drive, and sends a soft reminder on overdue invoices. Invoices still unpaid after a soft reminder go to the accountant in Slack, who decides whether formal reminders go out.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Returns client customers (with accountant/auditor relation) where the current user has login access (proxy login). This is the Tripletex /company/>withLoginAccess route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getCompanyWithLoginAccess",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the client companies Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::getCompanyWithLoginAccess",
          "legacyElementId": "JS###v1###TripletexService###getCompanyWithLoginAccess",
          "methodName": "getCompanyWithLoginAccess",
          "position": {
            "x": 378,
            "y": 839
          }
        },
        "flowElementId": "1EF9DFA0-2BB4-4A00-A7FC-06E7BFB36D5A",
        "groupId": null,
        "id": "9CAA5602-00BE-4EB9-AD78-C79ED272C3B1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,name"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getCompanyWithLoginAccess",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Clients",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the client companies",
        "nextElementIds": [
          "51E9C297-B762-4B34-B2BD-8A92FC21E773"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": true,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Work out the dates Result"
          },
          "position": {
            "x": 110,
            "y": 850
          }
        },
        "flowElementId": "E4834831-D45A-4D42-A356-E68B2E68068C",
        "groupId": null,
        "id": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const day = 24 * 60 * 60 * 1000;\nconst fmt = (d) => d.toISOString().slice(0, 10);\nconst now = new Date();\nreturn {\n  today: fmt(now),\n  tomorrow: fmt(new Date(now.getTime() + day)),\n  yearAgo: fmt(new Date(now.getTime() - 365 * day)),\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Dates",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Work out the dates",
        "nextElementIds": [
          "9CAA5602-00BE-4EB9-AD78-C79ED272C3B1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Escalations": "3fa0cc04-3d79-4f4b-a12c-3df8c15f0698",
            "Invoices raised": "782596be-8b6e-40ae-bcc8-67c6871d6c4f",
            "Soft reminders": "f7ceaf17-48fc-41ea-9d1f-f9dca45b03ff",
            "Skipped clients": "4988b6cf-d4e6-4c79-9734-fb51bf2f7c3b",
            "Invoice": "fd6da69d-6a74-443c-82bc-0d5a8cc0bc0f"
          },
          "position": {
            "x": 690,
            "y": 850
          }
        },
        "flowElementId": "466C70F7-E34D-43BA-9D0B-66D34CB343C2",
        "groupId": null,
        "id": "51E9C297-B762-4B34-B2BD-8A92FC21E773",
        "metaInfo": {
          "bucketName": "Run",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Escalations",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "JSON",
                    "label": null,
                    "parsedValue": [],
                    "type": "INPUT",
                    "value": "[]"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Invoices raised",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Soft reminders",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Skipped clients",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_STRING",
                    "label": null,
                    "type": "KEYWORD",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Invoice",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_OBJECT",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "general.createObject()"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "bucket",
          "storeResult": true
        },
        "name": "Start the run totals",
        "nextElementIds": [],
        "nextGroupIds": [
          "6A824915-E023-497F-A430-D13DD46C0801"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "error-handler",
          "isFirstElement": false,
          "blockDefinitionId": "error-handler",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Client could not be opened Result"
          },
          "position": {
            "x": -147.10439872937303,
            "y": 697.7438904649648
          }
        },
        "flowElementId": "DD94CA16-CD9C-45B0-8AE4-D936D97A77D2",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "26EFA7B6-B853-4DCC-9DE6-AF153C7B4A4B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Client error",
          "saveToVariable": null,
          "storeResult": true
        },
        "name": "Client could not be opened",
        "nextElementIds": [
          "F7E9787E-8ECC-404A-BA8A-3502D9B224B9"
        ],
        "nextGroupIds": [],
        "type": "ERROR_HANDLER"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Group orders by customer Result"
          },
          "position": {
            "x": 440.9397849389327,
            "y": 494.3986314913225
          }
        },
        "flowElementId": "6843AFFC-6AB8-418B-837E-23313A9E6EB5",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "5A328C33-473A-4B2A-9D0E-1C6804D4F985",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "orders",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Orders",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "ED420AC2-3262-47BF-B3E9-06FDB932F4E4"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "today",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "// Orders that are still open, not subscriptions, and delivered by today.\nconst ready = (Array.isArray(orders) ? orders : []).filter((o) =>\n  !o.isClosed && !o.isSubscription && String(o.deliveryDate || o.orderDate || '') <= today);\n// Tripletex can only combine orders with the same customer, currency, terms and recipient.\nconst groups = {};\nfor (const o of ready) {\n  const customer = o.customer || {};\n  const key = [customer.id, o.currency && o.currency.code, o.invoicesDueIn, o.invoicesDueInType,\n    o.receiverEmail || '', (o.attn && o.attn.id) || ''].join('|');\n  if (!groups[key]) {\n    groups[key] = {\n      companyId,\n      companyName,\n      customerName: customer.name || 'Customer',\n      sendType: customer.invoiceSendMethod || 'EMAIL',\n      orderIds: [],\n    };\n  }\n  groups[key].orderIds.push(o.id);\n}\nconst batches = Object.values(groups).map((g) => ({ ...g, orderCount: g.orderIds.length }));\nreturn { batches, count: batches.length };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Invoice batches",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Group orders by customer",
        "nextElementIds": [],
        "nextGroupIds": [
          "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
        ],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Send invoice by ID and sendType. Optionally override email recipient. This is the Tripletex /invoice/id/:send route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::sendInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::sendInvoice",
          "legacyElementId": "JS###v1###TripletexService###sendInvoice",
          "methodName": "sendInvoice",
          "position": {
            "x": 690,
            "y": 130
          }
        },
        "flowElementId": "CED0EB52-7705-4108-9CFB-6039594C4B0E",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "D39DE057-B952-4DFB-B079-400FFB087149",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Invoice",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Invoice",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Invoice",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "sendType",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "overrideEmailAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Sent invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the invoice",
        "nextElementIds": [
          "E7EDD40C-459F-4905-8DB6-B033E14D55D9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads files from URLs and uploads them to Google Drive, enabling AI agents to archive web content, save API responses, or collect files from external sources. Perfect for automated workflows that need to backup files from other services or capture generated content.",
          "elementId": "EXTENSION:::SHARED:::default:::google-drive-api:::uploadFile",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File the PDF in Google Drive Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-drive-api:::uploadFile",
          "legacyElementId": "JS###v1###GoogleDrive###uploadFile",
          "methodName": "uploadFile",
          "position": {
            "x": 1270,
            "y": 130
          }
        },
        "flowElementId": "0C42E44C-697A-4080-9626-8299EEE6A646",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "F5DA76C6-94EB-4F64-92DD-C55F988BB440",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "sharedDriveId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "folderId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "name",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice PDF",
                    "subPathSegments": [
                      {
                        "key": "filename",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E7EDD40C-459F-4905-8DB6-B033E14D55D9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice PDF",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "E7EDD40C-459F-4905-8DB6-B033E14D55D9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'File the PDF in Google Drive', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "uploadFile",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed PDF",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-drive-api",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File the PDF in Google Drive",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the order of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listOrder",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find orders ready to invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listOrder",
          "legacyElementId": "JS###v1###TripletexService###listOrder",
          "methodName": "listOrder",
          "position": {
            "x": 110,
            "y": 490
          }
        },
        "flowElementId": "522F660E-2CE5-492D-A571-F437A7962C40",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "ED420AC2-3262-47BF-B3E9-06FDB932F4E4",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "number",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderDateFrom",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "yearAgo",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderDateTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "tomorrow",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "deliveryComment",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isClosed",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "isSubscription",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*,customer(id,name,invoiceSendMethod),currency(code)"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listOrder",
          "onFailElemId": "26EFA7B6-B853-4DCC-9DE6-AF153C7B4A4B",
          "packageId": "default",
          "resultAlias": "Orders",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find orders ready to invoice",
        "nextElementIds": [
          "5A328C33-473A-4B2A-9D0E-1C6804D4F985"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Escalations": "3e23c3c1-84ab-4d4f-b46a-3d819258896d",
            "Invoices raised": "0631431e-98fb-4b56-8d2a-8ab5b63ae91f",
            "Soft reminders": "e12f629f-b4f2-4d84-a356-e61d9f619028"
          },
          "position": {
            "x": 748.6478984829706,
            "y": 667.4622678240834
          }
        },
        "flowElementId": "2E4217AF-0F12-4CFF-8759-2917A128C960",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "6A03B685-5932-43EB-89F3-3B16392F353A",
        "metaInfo": {
          "bucketName": "Run",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Escalations",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Receivables",
                    "subPathSegments": [
                      {
                        "key": "escalations",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "06BDB1E4-9B47-4408-8E7B-00680C4A34CF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Invoices raised",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Receivables",
                    "subPathSegments": [
                      {
                        "key": "invoicesRaised",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "06BDB1E4-9B47-4408-8E7B-00680C4A34CF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Soft reminders",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Receivables",
                    "subPathSegments": [
                      {
                        "key": "softSent",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "06BDB1E4-9B47-4408-8E7B-00680C4A34CF"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "totals",
          "storeResult": true
        },
        "name": "Keep the running totals",
        "nextElementIds": [],
        "nextGroupIds": [
          "FCC408C0-DBC4-41FD-9E62-8A8624D0532D"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Charges a single customer invoice from multiple orders. The orders must be to the same customer, currency, due date, receiver email, attn. and smsNotificationNumber. This is the Tripletex /order/:invoiceMultipleOrders route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::invoiceMultipleOrdersOrder",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": true,
          "saveToVariable": {
            "dataBucket": "Run",
            "variable": "Invoice"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::invoiceMultipleOrdersOrder",
          "legacyElementId": "JS###v1###TripletexService###invoiceMultipleOrdersOrder",
          "methodName": "invoiceMultipleOrdersOrder",
          "position": {
            "x": 465.07030962553074,
            "y": -19.933179918251977
          }
        },
        "flowElementId": "8F83A91F-12AC-49F1-8DCF-B834000DFD39",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "EF6007FD-0079-4F34-AEFB-D87FF24A7323",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "orderIds",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendToCustomer",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createBackorders",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "invoiceMultipleOrdersOrder",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Combined invoice",
          "retryPolicy": null,
          "saveToVariable": {
            "dataBucket": "Run",
            "variable": "Invoice"
          },
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Invoice the orders together",
        "nextElementIds": [
          "D39DE057-B952-4DFB-B079-400FFB087149"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Skipped clients": "7c4323ca-96d3-4157-8228-0df6c304eed0"
          },
          "position": {
            "x": -141.8219939864958,
            "y": 835.4504398050111
          }
        },
        "flowElementId": "9B16EB05-11CA-4E4B-8D04-3F25D236584B",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "F7E9787E-8ECC-404A-BA8A-3502D9B224B9",
        "metaInfo": {
          "bucketName": "Run",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Skipped clients",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Skipped clients",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Skipped clients",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Skipped clients",
                        "optional": false
                      }
                    ]
                  },
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "; "
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "skipnote",
          "storeResult": true
        },
        "name": "Note the skipped client",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Lists the invoice of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find overdue invoices Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listInvoice",
          "legacyElementId": "JS###v1###TripletexService###listInvoice",
          "methodName": "listInvoice",
          "position": {
            "x": 1084.2103616627378,
            "y": 490.67683286051056
          }
        },
        "flowElementId": "8AB97094-2C2A-4CCB-8610-F8F2DB2C1EDE",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "6D3997BC-129A-4CAD-9B85-88DF357F9E1A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDateFrom",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "yearAgo",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDateTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "tomorrow",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "kid",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "voucherId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customerId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1000
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sorting",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "*,customer(id,name,email,invoiceEmail),currency(code),reminders(type,reminderDate)"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "listInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Invoices",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find overdue invoices",
        "nextElementIds": [
          "06BDB1E4-9B47-4408-8E7B-00680C4A34CF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Get invoice document by invoice ID. Stores the PDF in FlowRunner file storage and returns its URL, file name and size. This is the Tripletex /invoice/id/pdf route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getInvoicePdf",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the invoice PDF Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::getInvoicePdf",
          "legacyElementId": "JS###v1###TripletexService###getInvoicePdf",
          "methodName": "getInvoicePdf",
          "position": {
            "x": 980,
            "y": 130
          }
        },
        "flowElementId": "870748AC-7056-4553-8F09-8F995D200D80",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "E7EDD40C-459F-4905-8DB6-B033E14D55D9",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Invoice",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Invoice",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Invoice",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "download",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "filename",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyName",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " - "
                  },
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "customerName",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " - invoice "
                  },
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Invoice",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "invoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Invoice",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Invoice",
                        "optional": false
                      }
                    ]
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ".pdf"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getInvoicePdf",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Invoice PDF",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the invoice PDF",
        "nextElementIds": [
          "F5DA76C6-94EB-4F64-92DD-C55F988BB440"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Sort the overdue invoices Result"
          },
          "position": {
            "x": 1074.6055718823668,
            "y": 658.1577712470532
          }
        },
        "flowElementId": "65F8CF78-8621-4990-BAC2-04C99D00171C",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "06BDB1E4-9B47-4408-8E7B-00680C4A34CF",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "invoices",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoices",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "6D3997BC-129A-4CAD-9B85-88DF357F9E1A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "today",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "6A824915-E023-497F-A430-D13DD46C0801"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "escalateAfterDays",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Days before escalating",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Days before escalating"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "escalations",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Escalations",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Escalations",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Escalations",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoicesRaised",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Invoices raised",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Invoices raised",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Invoices raised",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "softSent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Soft reminders",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Soft reminders",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Soft reminders",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "newInvoices",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Invoice batches",
                    "subPathSegments": [
                      {
                        "key": "count",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5A328C33-473A-4B2A-9D0E-1C6804D4F985"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const day = 24 * 60 * 60 * 1000;\nconst t = new Date(today + 'T00:00:00Z').getTime();\nconst soft = [];\nconst escalate = [];\nfor (const inv of (Array.isArray(invoices) ? invoices : [])) {\n  const outstanding = Number(inv.amountOutstanding || 0);\n  if (outstanding <= 0 || inv.isCreditNote || !inv.invoiceDueDate || inv.invoiceDueDate >= today) continue;\n  const reminders = Array.isArray(inv.reminders) ? inv.reminders : [];\n  // A formal reminder or debt collection notice already went out: that case is already with a person.\n  if (reminders.some((r) => r.type && r.type !== 'SOFT_REMINDER')) continue;\n  const customer = inv.customer || {};\n  const email = customer.invoiceEmail || customer.email || '';\n  const item = {\n    companyId,\n    companyName,\n    invoiceId: inv.id,\n    invoiceNumber: inv.invoiceNumber,\n    customerName: customer.name || 'Customer',\n    amount: outstanding,\n    currency: (inv.currency && inv.currency.code) || 'NOK',\n    dueDate: inv.invoiceDueDate,\n  };\n  // Reminders go out by email, so check there is an address before sending anything.\n  if (!email) {\n    escalate.push({ ...item, canEmail: false, reason: 'no email address on the customer' });\n    continue;\n  }\n  if (reminders.length === 0) {\n    soft.push(item);\n    continue;\n  }\n  const last = reminders.map((r) => r.reminderDate).filter(Boolean).sort().pop();\n  const days = last ? Math.floor((t - new Date(last + 'T00:00:00Z').getTime()) / day) : 0;\n  if (days >= Number(escalateAfterDays || 14)) {\n    escalate.push({ ...item, canEmail: true, reason: `soft reminder sent ${last}, still unpaid` });\n  }\n}\nreturn {\n  softReminders: soft,\n  escalations: (Array.isArray(escalations) ? escalations : []).concat(escalate),\n  invoicesRaised: Number(invoicesRaised || 0) + Number(newInvoices || 0),\n  softSent: Number(softSent || 0) + soft.length,\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Receivables",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Sort the overdue invoices",
        "nextElementIds": [
          "6A03B685-5932-43EB-89F3-3B16392F353A"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Create new invoice or subscription invoice from order. This is the Tripletex /order/id/:invoice route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::invoiceOrder",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": true,
          "saveToVariable": {
            "dataBucket": "Run",
            "variable": "Invoice"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::invoiceOrder",
          "legacyElementId": "JS###v1###TripletexService###invoiceOrder",
          "methodName": "invoiceOrder",
          "position": {
            "x": 465.07030962553074,
            "y": 271.3712970727874
          }
        },
        "flowElementId": "1C61D299-A23C-4DC6-A1F5-E35EC3D57A0C",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "E84E2B85-5BF0-4696-B791-099D2DA7D5BC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "orderIds",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendToCustomer",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendType",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paymentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paidAmount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paidAmountAccountCurrency",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paymentTypeIdRestAmount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "paidAmountAccountCurrencyRest",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createOnAccount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amountOnAccount",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "onAccountComment",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "createBackorder",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceIdIfIsCreditNote",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "overrideEmailAddress",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "invoiceOrder",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Single invoice",
          "retryPolicy": null,
          "saveToVariable": {
            "dataBucket": "Run",
            "variable": "Invoice"
          },
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Invoice the order",
        "nextElementIds": [
          "D39DE057-B952-4DFB-B079-400FFB087149"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": true,
          "blockDefinitionId": "condition",
          "position": {
            "x": 110,
            "y": 130
          }
        },
        "flowElementId": "E57148D2-7718-466B-B6F7-F5654842CB3C",
        "groupId": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "id": "5ED85F03-1FF8-4636-91E2-042250C5E0D1",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "24cd988f-38ce-457d-8ed0-a04ec43b0343",
                "nestedOperation": null,
                "operation": ">",
                "property": {
                  "expression": [
                    {
                      "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                      "label": null,
                      "subPathSegments": [
                        {
                          "key": "orderCount",
                          "optional": false
                        }
                      ],
                      "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                      "value": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 1
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "24cd988f-38ce-457d-8ed0-a04ec43b0343"
            ]
          },
          "elseComponent": {
            "componentId": "E84E2B85-5BF0-4696-B791-099D2DA7D5BC",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Several orders",
          "storeResult": false,
          "thenComponent": {
            "componentId": "EF6007FD-0079-4F34-AEFB-D87FF24A7323",
            "componentType": "ELEMENT"
          }
        },
        "name": "Several orders for this customer?",
        "nextElementIds": [
          "E84E2B85-5BF0-4696-B791-099D2DA7D5BC",
          "EF6007FD-0079-4F34-AEFB-D87FF24A7323"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Create invoice reminder and sends it by the given dispatch type. Supports the reminder types SOFT_REMINDER, REMINDER and NOTICE_OF_DEBT_COLLECTION. DispatchType NETS_PRINT must have type NOTICE_OF_DEBT_COLLECTION. SMS and NETS_PRINT must be activated prior to usage in the API. This is the Tripletex /invoice/id/:createReminder route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::createReminderInvoice",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send a soft reminder Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::createReminderInvoice",
          "legacyElementId": "JS###v1###TripletexService###createReminderInvoice",
          "methodName": "createReminderInvoice",
          "position": {
            "x": 110,
            "y": 1030
          }
        },
        "flowElementId": "2814AAF0-2BA3-4FA6-8B4E-17F17F9316F9",
        "groupId": "FCC408C0-DBC4-41FD-9E62-8A8624D0532D",
        "id": "E5612EB0-3910-4A7D-8A97-EF990D88EA7A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "invoiceId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "FCC408C0-DBC4-41FD-9E62-8A8624D0532D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "SOFT_REMINDER"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeCharge",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeInterest",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dispatchType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "EMAIL"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dispatchTypes",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            },
            {
              "name": "smsNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "address",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postalCode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "FCC408C0-DBC4-41FD-9E62-8A8624D0532D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createReminderInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Soft reminder",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send a soft reminder",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Ask the accountant Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 759.5130011720663,
            "y": 1221.5030302206956
          }
        },
        "flowElementId": "77DA0CB5-DE47-4290-A1D7-A5D96DB98154",
        "groupId": null,
        "id": "7614BCE3-5E46-43DA-A854-BB1FF37DD293",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "blocks",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Question to accountant",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the accountant",
        "nextElementIds": [
          "187C555F-89E2-4D0E-A035-0EB4358250B2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm they were left as they are Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1629.5130011720662,
            "y": 1131.5030302206956
          }
        },
        "flowElementId": "41808590-A39C-4F6E-AAFA-F51F117C7D3B",
        "groupId": null,
        "id": "8A4CF55D-9F45-4EEA-968B-9A1B2260D974",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Left as they are. No formal reminders were sent, and these invoices come up again on the next run if they are still unpaid."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to accountant",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7614BCE3-5E46-43DA-A854-BB1FF37DD293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Left confirmed",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm they were left as they are",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the question for the accountant Result"
          },
          "position": {
            "x": 920.1509287036663,
            "y": 972.819354816798
          }
        },
        "flowElementId": "3730C9E6-A736-48AC-9592-D9B4B268A155",
        "groupId": null,
        "id": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "escalations",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Escalations",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Escalations",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Escalations",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoicesRaised",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Invoices raised",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Invoices raised",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Invoices raised",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "softSent",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Soft reminders",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Soft reminders",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Soft reminders",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "skipped",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Run - Skipped clients",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Run.Skipped clients",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Run",
                        "optional": false
                      },
                      {
                        "key": "Skipped clients",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companies",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Clients",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "9CAA5602-00BE-4EB9-AD78-C79ED272C3B1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "answerLink",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Answer link",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Answer link"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "executionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_ID",
                    "label": null,
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.executionId",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "executionId",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const list = Array.isArray(escalations) ? escalations : [];\nconst toSend = list.filter((e) => e.canEmail);\nconst noEmail = list.filter((e) => !e.canEmail);\nconst money = (n, c) => `${Number(n).toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 })} ${c}`;\nconst line = (e) => `• ${e.companyName}: invoice ${e.invoiceNumber} to ${e.customerName}, ${money(e.amount, e.currency)}, due ${e.dueDate}, ${e.reason}`;\nconst clients = Array.isArray(companies) ? companies.length : 0;\nconst parts = [`Client run: ${invoicesRaised || 0} invoices raised and sent, ${softSent || 0} soft reminders sent, across ${clients} client companies.`];\nif (toSend.length) {\n  parts.push('', `*Still unpaid after a soft reminder (${toSend.length}). Send each customer a formal reminder by email?*`, ...toSend.map(line));\n}\nif (noEmail.length) {\n  parts.push('', `*No email address on the customer (${noEmail.length}). These need a call or a letter:*`, ...noEmail.map(line));\n}\nif (skipped) {\n  parts.push('', `Could not open: ${String(skipped).trim().replace(/;$/, '')}. Check that the employee token has access to these clients.`);\n}\nconst text = parts.join('\\n');\nconst link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst blocks = [{ type: 'section', text: { type: 'mrkdwn', text: text.length > 2900 ? text.slice(0, 2900) + '\\n…' : text } }];\nif (toSend.length) {\n  blocks.push({ type: 'actions', elements: [\n    { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Send formal reminders' }, url: link('remind') },\n    { type: 'button', text: { type: 'plain_text', text: 'Leave them with me' }, url: link('leave') },\n  ] });\n}\nreturn { text, blocks, toSend, sendCount: toSend.length };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Question card",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the question for the accountant",
        "nextElementIds": [
          "96FBCCEB-5297-4E08-86EB-1FEED1437D11"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 1049.5130011720662,
            "y": 1221.5030302206956
          }
        },
        "flowElementId": "E57614DE-EB85-4453-9262-E108FB8E855E",
        "groupId": null,
        "id": "187C555F-89E2-4D0E-A035-0EB4358250B2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Accountant decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the accountant's answer",
        "nextElementIds": [
          "775DB76E-D8CA-410D-A61C-2E6050037459"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Report the run Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 759.5130011720663,
            "y": 1401.5030302206956
          }
        },
        "flowElementId": "8CAF165F-97A8-4FFB-BDBF-7A3BB8D01DFB",
        "groupId": null,
        "id": "46896BBA-53CB-4FC4-937C-DB2235C20721",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Run report",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Report the run",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 469.5130011720663,
            "y": 1311.5030302206956
          }
        },
        "flowElementId": "332CA677-9BF0-45AD-BEBD-C46087EE1C90",
        "groupId": null,
        "id": "96FBCCEB-5297-4E08-86EB-1FEED1437D11",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "c98d89c3-e9d7-431d-a241-97beb6ed48c7",
                "nestedOperation": null,
                "operation": ">",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Question card",
                      "subPathSegments": [
                        {
                          "key": "sendCount",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "INT",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "NUMBER",
                        "label": null,
                        "type": "INPUT",
                        "value": 0
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "c98d89c3-e9d7-431d-a241-97beb6ed48c7"
            ]
          },
          "elseComponent": {
            "componentId": "46896BBA-53CB-4FC4-937C-DB2235C20721",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Needs a decision",
          "storeResult": false,
          "thenComponent": {
            "componentId": "7614BCE3-5E46-43DA-A854-BB1FF37DD293",
            "componentType": "ELEMENT"
          }
        },
        "name": "Anything for the accountant to decide?",
        "nextElementIds": [
          "7614BCE3-5E46-43DA-A854-BB1FF37DD293",
          "46896BBA-53CB-4FC4-937C-DB2235C20721"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Confirm the reminders went out Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1919.5130011720662,
            "y": 1311.5030302206956
          }
        },
        "flowElementId": "084ECB62-6FDC-4D2D-9255-DA4388D16412",
        "groupId": null,
        "id": "2C37EA92-0764-49CD-8FFC-D6C708B825D1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "channelId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "messageText",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Formal reminders sent by email for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question card",
                    "subPathSegments": [
                      {
                        "key": "sendCount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " invoices."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Question to accountant",
                    "subPathSegments": [
                      {
                        "key": "messageId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "7614BCE3-5E46-43DA-A854-BB1FF37DD293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Reminders confirmed",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Confirm the reminders went out",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Create invoice reminder and sends it by the given dispatch type. Supports the reminder types SOFT_REMINDER, REMINDER and NOTICE_OF_DEBT_COLLECTION. DispatchType NETS_PRINT must have type NOTICE_OF_DEBT_COLLECTION. SMS and NETS_PRINT must be activated prior to usage in the API. This is the Tripletex /invoice/id/:createReminder route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::createReminderInvoice",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send a formal reminder Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::createReminderInvoice",
          "legacyElementId": "JS###v1###TripletexService###createReminderInvoice",
          "methodName": "createReminderInvoice",
          "position": {
            "x": 110,
            "y": 1210
          }
        },
        "flowElementId": "4FF1E7EA-664C-4FC5-B6C7-4DE45DC9F367",
        "groupId": "3E929123-9F92-4C08-AB00-703273C5AD96",
        "id": "C5227C8B-2AD9-4309-91C6-2FD08DD37954",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "invoiceId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "3E929123-9F92-4C08-AB00-703273C5AD96"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "type",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "REMINDER"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Dates",
                    "subPathSegments": [
                      {
                        "key": "today",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeCharge",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeInterest",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dispatchType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "EMAIL"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dispatchTypes",
              "type": "SIMPLE_LIST",
              "value": [
                {
                  "expression": [],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                }
              ]
            },
            {
              "name": "smsNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "email",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "address",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postalCode",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "city",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "companyIdOverride",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "companyId",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "3E929123-9F92-4C08-AB00-703273C5AD96"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "createReminderInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Formal reminder",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send a formal reminder",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1339.5130011720662,
            "y": 1221.5030302206956
          }
        },
        "flowElementId": "2E5B441B-71F5-4EE2-83F3-16A53A25CC94",
        "groupId": null,
        "id": "775DB76E-D8CA-410D-A61C-2E6050037459",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "f7c873be-ae90-436a-b816-324bb978c294",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Accountant decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "187C555F-89E2-4D0E-A035-0EB4358250B2"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "remind"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "f7c873be-ae90-436a-b816-324bb978c294"
            ]
          },
          "elseComponent": {
            "componentId": "8A4CF55D-9F45-4EEA-968B-9A1B2260D974",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Send reminders",
          "storeResult": false,
          "thenComponent": {
            "componentId": "3E929123-9F92-4C08-AB00-703273C5AD96",
            "componentType": "GROUP"
          }
        },
        "name": "Send formal reminders?",
        "nextElementIds": [
          "8A4CF55D-9F45-4EEA-968B-9A1B2260D974"
        ],
        "nextGroupIds": [
          "3E929123-9F92-4C08-AB00-703273C5AD96"
        ],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "8F703AE6-4095-4DEE-AF41-CC907A03B5DE",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 123.72125408976757,
            "y": 218.3907388524981,
            "zoom": 0.583983697306559
          },
          "position": {
            "x": 756.9923753546171,
            "y": 499.9813294375407
          }
        },
        "flowElementId": "10AD9651-BD3C-47F8-966D-559A143F1C1C",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "4F00BFF7-C3F6-4F6C-8A7F-1F47DD7C7293",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'For each customer to invoice', Error: Children have error",
            "valid": false
          },
          "enabled": true,
          "firstElementId": "5ED85F03-1FF8-4636-91E2-042250C5E0D1",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Invoice batches",
                "subPathSegments": [
                  {
                    "key": "batches",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "5A328C33-473A-4B2A-9D0E-1C6804D4F985"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "Invoice loop",
          "storeResult": true
        },
        "name": "For each customer to invoice",
        "nextElementIds": [
          "6D3997BC-129A-4CAD-9B85-88DF357F9E1A"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 435.86430685838207,
            "y": -873.5167533527908,
            "zoom": 1
          },
          "position": {
            "x": 348.25425246733306,
            "y": 667.4622678240834
          }
        },
        "flowElementId": "1F72858E-C7A8-4F9A-A7BE-644FDE77BD19",
        "groupId": "6A824915-E023-497F-A430-D13DD46C0801",
        "id": "FCC408C0-DBC4-41FD-9E62-8A8624D0532D",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "E5612EB0-3910-4A7D-8A97-EF990D88EA7A",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Receivables",
                "subPathSegments": [
                  {
                    "key": "softReminders",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "06BDB1E4-9B47-4408-8E7B-00680C4A34CF"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "Soft reminder loop",
          "storeResult": true
        },
        "name": "For each invoice due a soft reminder",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 119.05667359808854,
            "y": -126.29368509933181,
            "zoom": 0.583983697306559
          },
          "position": {
            "x": 970.69550342297,
            "y": 848.1391006845939
          }
        },
        "flowElementId": "963FEBA0-2840-4FBA-BA39-C266E2521B1C",
        "groupId": null,
        "id": "6A824915-E023-497F-A430-D13DD46C0801",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'For each client company', Error: Children have error",
            "valid": false
          },
          "enabled": true,
          "firstElementId": "ED420AC2-3262-47BF-B3E9-06FDB932F4E4",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Clients",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "9CAA5602-00BE-4EB9-AD78-C79ED272C3B1"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "Client loop",
          "storeResult": true
        },
        "name": "For each client company",
        "nextElementIds": [
          "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": 0,
            "y": 0,
            "zoom": 0.8
          },
          "position": {
            "x": 1629.5130011720662,
            "y": 1311.5030302206956
          }
        },
        "flowElementId": "B3A9F54C-DAC3-4C30-8074-D05C31EB0860",
        "groupId": null,
        "id": "3E929123-9F92-4C08-AB00-703273C5AD96",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "C5227C8B-2AD9-4309-91C6-2FD08DD37954",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Question card",
                "subPathSegments": [
                  {
                    "key": "toSend",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "FA44EE2F-6201-424A-9B45-3CB826EFC9C5"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "Formal reminder loop",
          "storeResult": true
        },
        "name": "For each invoice to remind",
        "nextElementIds": [
          "2C37EA92-0764-49CD-8FFC-D6C708B825D1"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "39210C9F-84CD-4B6A-BF1B-A4D367C95C5E",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The URL of the block Wait for the accountant's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "How many days after a soft reminder an unpaid invoice goes to the accountant.",
          "error": null,
          "name": "Days before escalating",
          "type": "INT",
          "value": ""
        }
      ],
      "initialData": null,
      "initialDataDefaultValues": {},
      "ownerFlowVersionId": null,
      "schedule": null,
      "sharedMemory": {
        "anchor": {
          "missingAnchorPolicy": null,
          "path": null,
          "type": "FLOW_MEMORY"
        },
        "expirationInSec": null
      },
      "wasLive": false
    }
  },
  "slaCalendars": [],
  "slaGoals": [],
  "subFlows": [],
  "exportDate": "2026-11-17T09:56:12.392Z"
}
