{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "3708977F-DBBB-4186-8439-AC01EB9EC7E2",
    "name": "Tripletex: supplier invoice three-way match"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 225.43033918282276,
        "y": -79.00203222722484,
        "zoom": 0.6104732563345676
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When a supplier invoice is posted in Tripletex, matches it to its purchase order and goods receipt, prices any variance, fixes the department and project coding, and asks the approver in Slack to approve or reject.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a supplier invoice is posted in Tripletex, matches it to its purchase order and goods receipt, prices any variance, fixes the department and project coding, and asks the approver in Slack to approve or reject.",
    "elements": [
      {
        "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 approver Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 23.97522647593533,
            "y": 886.6958720578991
          }
        },
        "flowElementId": "FD1CABE9-E350-467E-82F0-BE163312DF41",
        "groupId": null,
        "id": "A8A94DD0-5E9E-495C-B243-E7EE9220A98F",
        "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": "46B1D15D-6DA0-4E78-B613-E6B08197EB92"
                  }
                ],
                "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": "46B1D15D-6DA0-4E78-B613-E6B08197EB92"
                  }
                ],
                "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 approver",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Ask the approver",
        "nextElementIds": [
          "481CCF40-3F54-4113-A59A-298DF510DA90"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "external-callback",
          "isFirstElement": false,
          "blockDefinitionId": "external-callback",
          "position": {
            "x": 384.4123824918804,
            "y": 889.9720188493385
          }
        },
        "flowElementId": "09949168-4E7A-414C-95F5-2BC978DD99D7",
        "groupId": null,
        "id": "481CCF40-3F54-4113-A59A-298DF510DA90",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "resultAlias": "Approver decision",
          "slaConditions": [],
          "storeResult": true,
          "type": "CALLBACK"
        },
        "name": "Wait for the approver's answer",
        "nextElementIds": [
          "E6D63857-24AD-4E03-BF57-3B02B8A7E85C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Lists the purchase order goods receipt line of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listPurchaseOrderGoodsReceiptLine",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read what was received Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listPurchaseOrderGoodsReceiptLine",
          "legacyElementId": "JS###v1###TripletexService###listPurchaseOrderGoodsReceiptLine",
          "methodName": "listPurchaseOrderGoodsReceiptLine",
          "position": {
            "x": 401.33486229962426,
            "y": 263.89174278137557
          }
        },
        "flowElementId": "1EA5CB8C-86EE-4061-8A5C-2FEBB67B5CE7",
        "groupId": null,
        "id": "E62FB73E-169A-48B0-BF93-740D7E3FDE78",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "purchaseOrderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Order link",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "orderOut",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB"
                  }
                ],
                "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": "id,product(id,number,name),quantityOrdered,quantityReceived,quantityRest"
                  }
                ],
                "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": "listPurchaseOrderGoodsReceiptLine",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Goods received",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read what was received",
        "nextElementIds": [
          "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the purchase order purchase order incoming invoice relation of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listPurchaseOrderPurchaseOrderIncomingInvoiceRelation",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the purchase order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listPurchaseOrderPurchaseOrderIncomingInvoiceRelation",
          "legacyElementId": "JS###v1###TripletexService###listPurchaseOrderPurchaseOrderIncomingInvoiceRelation",
          "methodName": "listPurchaseOrderPurchaseOrderIncomingInvoiceRelation",
          "position": {
            "x": 1045.6479984827472,
            "y": 121.97547955495318
          }
        },
        "flowElementId": "91C63CB9-5D8D-4BB2-BB32-6519031DAE04",
        "groupId": null,
        "id": "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderOutId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "voucherId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Tripletex event",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "09DBEB37-B123-41D8-9686-0F10F9D0E42E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "from",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "count",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "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,orderOut(id,number)"
                  }
                ],
                "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": "listPurchaseOrderPurchaseOrderIncomingInvoiceRelation",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Order link",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the purchase order",
        "nextElementIds": [
          "98CC5E2A-D23E-46AD-9143-193E5B044771"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Change dimension on a supplier invoice. This is the Tripletex /supplierInvoice/id/:changeDimension route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::changeDimensionSupplierInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move the cost to the order's department Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::changeDimensionSupplierInvoice",
          "legacyElementId": "JS###v1###TripletexService###changeDimensionSupplierInvoice",
          "methodName": "changeDimensionSupplierInvoice",
          "position": {
            "x": -26.019267110341787,
            "y": 695.1422018715896
          }
        },
        "flowElementId": "5BB1B657-3566-4E2C-BEAB-B90074AC2805",
        "groupId": null,
        "id": "648D9CE6-3298-445F-B564-13FE412AA8E2",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "debitPostingIds",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "debitPostingIds",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dimension",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "DEPARTMENT"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dimensionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "departmentId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "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": "changeDimensionSupplierInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Department fix",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move the cost to the order's department",
        "nextElementIds": [
          "D25A6C12-7EA0-446D-9CA2-D47067F4C580"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 690,
            "y": 130
          }
        },
        "flowElementId": "2A03DB36-814E-407F-B770-EC3E40C153E2",
        "groupId": null,
        "id": "D7165AE0-7ACE-4B02-8A99-E5AFDDD7A0F9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "ea85d45e-db0e-4399-8899-5e68a04ead40",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Supplier invoice",
                      "subPathSegments": [
                        {
                          "key": "values",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "ea85d45e-db0e-4399-8899-5e68a04ead40"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Is supplier invoice",
          "storeResult": false,
          "thenComponent": {
            "componentId": "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB",
            "componentType": "ELEMENT"
          }
        },
        "name": "Is it a supplier invoice?",
        "nextElementIds": [
          "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 826.7532082938081,
            "y": 898.1623858279368
          }
        },
        "flowElementId": "774A7C20-7345-4E61-B2DC-B4979E38552E",
        "groupId": null,
        "id": "E6D63857-24AD-4E03-BF57-3B02B8A7E85C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "cc22fe5a-1cdd-403d-ba49-d76a0e365d4f",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "RESULT",
                      "label": "Approver decision",
                      "subPathSegments": [
                        {
                          "key": "decision",
                          "optional": false
                        }
                      ],
                      "type": "TRIGGER_DATA",
                      "value": "481CCF40-3F54-4113-A59A-298DF510DA90"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "approve"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "cc22fe5a-1cdd-403d-ba49-d76a0e365d4f"
            ]
          },
          "elseComponent": {
            "componentId": "AB042CE5-B3D2-4441-B398-69C15B6335F0",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Approve it",
          "storeResult": false,
          "thenComponent": {
            "componentId": "51960CD5-3868-4328-AED2-34B5D2EDCFF8",
            "componentType": "ELEMENT"
          }
        },
        "name": "Approve it?",
        "nextElementIds": [
          "AB042CE5-B3D2-4441-B398-69C15B6335F0",
          "51960CD5-3868-4328-AED2-34B5D2EDCFF8"
        ],
        "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": "Flag an invoice with no order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 1005.7229363625554,
            "y": 437.71559625682073
          }
        },
        "flowElementId": "91371B51-C946-4610-9D27-7850D1D298BE",
        "groupId": null,
        "id": "FDC953D1-05D1-487B-9D42-A4E42B20E381",
        "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": "Supplier invoice "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "invoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "supplier",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "amount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "currency",
                        "optional": false
                      },
                      {
                        "key": "code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ") has no purchase order linked in Tripletex, so it could not be matched. Please review and approve it in Tripletex."
                  }
                ],
                "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": "No order notice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Flag an invoice with no order",
        "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 approver Result"
          },
          "position": {
            "x": 379.37614438947895,
            "y": 696.6793581544192
          }
        },
        "flowElementId": "E7643FFE-D39D-44A6-ABF4-4B8C8768702B",
        "groupId": null,
        "id": "46B1D15D-6DA0-4E78-B613-E6B08197EB92",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "invoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "supplier",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "supplier",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "amount",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "amount",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currency",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "currency",
                        "optional": false
                      },
                      {
                        "key": "code",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "invoiceDueDate",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "orderNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Purchase order",
                    "subPathSegments": [
                      {
                        "key": "value",
                        "optional": false
                      },
                      {
                        "key": "number",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "59C9CB4C-CE1D-44E4-8310-4AF356102845"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "matched",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "matched",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "variance",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "variance",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "summary",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "departmentOk",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "departmentOk",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "departmentName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "departmentName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectOk",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "projectOk",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "projectName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "projectName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "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 link = (decision) => `${answerLink}?execution=${encodeURIComponent(executionId)}&decision=${decision}`;\nconst coding = [];\nif (String(departmentOk) !== 'true' && departmentName) coding.push(`department ${departmentName}`);\nif (String(projectOk) !== 'true' && projectName) coding.push(`project ${projectName}`);\nconst lines = [\n  `*Supplier invoice ${invoiceNumber} from ${supplier}: ${amount} ${currency}, due ${dueDate}*`,\n  `Purchase order ${orderNumber}`,\n  String(matched) === 'true' ? 'Matches what was ordered and received.' : `*Does not match.* Variance: ${variance} ${currency}`,\n  summary,\n  coding.length ? `Cost moved to the order's ${coding.join(' and ')}.` : 'Coding matches the order.',\n].filter(Boolean);\nreturn {\n  text: `Supplier invoice ${invoiceNumber} from ${supplier} is waiting for approval`,\n  blocks: [\n    { type: 'section', text: { type: 'mrkdwn', text: lines.join('\\n') } },\n    { type: 'actions', elements: [\n      { type: 'button', style: 'primary', text: { type: 'plain_text', text: 'Approve' }, url: link('approve') },\n      { type: 'button', style: 'danger', text: { type: 'plain_text', text: 'Reject' }, url: link('reject') },\n    ] },\n  ],\n};\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 approver",
        "nextElementIds": [
          "A8A94DD0-5E9E-495C-B243-E7EE9220A98F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "ai-agent",
          "isFirstElement": false,
          "blockDefinitionId": "ai-agent",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Match invoice, order and receipt Result"
          },
          "tools": {},
          "position": {
            "x": 16.448623263126763,
            "y": 267.16788957281483
          }
        },
        "flowElementId": "1D3430D4-799B-46CB-BB8C-E22A6CC23908",
        "groupId": null,
        "id": "F20BD0A6-9C2F-4152-A093-0097DC894B3F",
        "metaInfo": {
          "aiApiKey": null,
          "aiModel": "claude-sonnet-5",
          "aiProvider": "ANTHROPIC",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "dynamicAiApiKey": {
            "expression": [
              {
                "id": "PLACEHOLDER_DATA",
                "label": "Anthropic key",
                "subPathSegments": null,
                "type": "EXECUTION_CONTEXT_STATIC_DATA",
                "value": "Anthropic key"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "files": [],
          "forceParsedOutput": true,
          "langSmithSettings": {
            "enabled": false,
            "apiKey": null,
            "projectName": null,
            "label": "FlowRunner AI-Agent",
            "accountCluster": "US"
          },
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "messagesHistoryEnabled": false,
          "messagesHistoryLimit": 15,
          "onFailElemId": null,
          "resultAlias": "Match",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "systemPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "You do the three-way match on a supplier invoice in Tripletex before a person approves it. You get the invoice with its lines and its voucher postings, the purchase order behind it, and the goods receipt lines that say what was actually received.\n\nCompare each invoiced line with the order line for the same product and with the quantity received. The quantity received is what counts, not the quantity ordered. Price any gap: (invoiced quantity minus received quantity) times the invoiced unit price, plus (invoiced unit price minus ordered unit price) times the received quantity. Add the gaps up.\n\nThen check the coding. The cost postings on the voucher (positive amounts on cost accounts, not the supplier ledger account) should carry the department and project of the purchase order.\n\nReply with JSON only, with these fields:\nmatched: true if every invoiced line was received in full at the ordered price, otherwise false\nvariance: the total priced gap as a number in the invoice currency, 0 if none\nsummary: one short plain sentence per line that differs, for example \"Cable 3x2.5: 44 invoiced, 40 received, 1,200 NOK over\"; empty text if everything matches\ndebitPostingIds: the ids of the cost postings, separated by commas\ndepartmentOk: true if the order has no department or every cost posting already has the order's department\ndepartmentId: the order's department id as a number, 0 if none\ndepartmentName: the order's department name, empty text if none\nprojectOk: true if the order has no project or every cost posting already has the order's project\nprojectId: the order's project id as a number, 0 if none\nprojectName: the order's project name, empty text if none"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "tools": [],
          "type": "AI_AGENT",
          "userPrompt": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "Supplier invoice:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Supplier invoice",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  },
                  {
                    "index": 0,
                    "last": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nPurchase order:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Purchase order",
                "subPathSegments": [
                  {
                    "key": "value",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "59C9CB4C-CE1D-44E4-8310-4AF356102845"
              },
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "\n\nGoods receipt lines:\n"
              },
              {
                "id": "ELEMENT_RESULT",
                "label": "Goods received",
                "subPathSegments": [
                  {
                    "key": "values",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "E62FB73E-169A-48B0-BF93-740D7E3FDE78"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          }
        },
        "name": "Match invoice, order and receipt",
        "nextElementIds": [
          "FCA0FC37-CC02-47FC-9F3D-59AAABC214C9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1025.4648862863262,
            "y": 266.6057970543328
          }
        },
        "flowElementId": "61791E62-3C51-4036-940C-FF9F8B7B755B",
        "groupId": null,
        "id": "98CC5E2A-D23E-46AD-9143-193E5B044771",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "19d807b9-d0af-4def-91e4-d01a141cc180",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Order link",
                      "subPathSegments": [
                        {
                          "key": "values",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "19d807b9-d0af-4def-91e4-d01a141cc180"
            ]
          },
          "elseComponent": {
            "componentId": "FDC953D1-05D1-487B-9D42-A4E42B20E381",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Order found",
          "storeResult": false,
          "thenComponent": {
            "componentId": "59C9CB4C-CE1D-44E4-8310-4AF356102845",
            "componentType": "ELEMENT"
          }
        },
        "name": "Purchase order found?",
        "nextElementIds": [
          "59C9CB4C-CE1D-44E4-8310-4AF356102845",
          "FDC953D1-05D1-487B-9D42-A4E42B20E381"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "reject supplier invoice. This is the Tripletex /supplierInvoice/id/:reject route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::rejectSupplierInvoice2",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Reject the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::rejectSupplierInvoice2",
          "legacyElementId": "JS###v1###TripletexService###rejectSupplierInvoice2",
          "methodName": "rejectSupplierInvoice2",
          "position": {
            "x": 1005.3642173848721,
            "y": 1070.0660556139196
          }
        },
        "flowElementId": "14837B99-B369-4183-90C4-516D16AECF90",
        "groupId": null,
        "id": "AB042CE5-B3D2-4441-B398-69C15B6335F0",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "comment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Rejected in Slack after the three-way match. "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "summary",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "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": "rejectSupplierInvoice2",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Rejection",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Reject the invoice",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 55.823393718019545,
            "y": 462.0986236634536
          }
        },
        "flowElementId": "F0A0C255-1F0F-440F-A2EA-20F46B2F9709",
        "groupId": null,
        "id": "FCA0FC37-CC02-47FC-9F3D-59AAABC214C9",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "9c4983a8-e58b-4a83-a9b0-8b2c33f85684",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Match",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "departmentOk",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "9c4983a8-e58b-4a83-a9b0-8b2c33f85684"
            ]
          },
          "elseComponent": {
            "componentId": "648D9CE6-3298-445F-B564-13FE412AA8E2",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Department ok",
          "storeResult": false,
          "thenComponent": {
            "componentId": "D25A6C12-7EA0-446D-9CA2-D47067F4C580",
            "componentType": "ELEMENT"
          }
        },
        "name": "Department coded right?",
        "nextElementIds": [
          "D25A6C12-7EA0-446D-9CA2-D47067F4C580",
          "648D9CE6-3298-445F-B564-13FE412AA8E2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Fires when Tripletex reports a subscribed event, such as an invoice being created or a customer changing. The webhook feature is marked beta by the vendor.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::onTripletexEvent",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::onTripletexEvent",
          "legacyElementId": "JS###v1###TripletexService###onTripletexEvent",
          "methodName": "onTripletexEvent",
          "position": {
            "x": 67.410091711289,
            "y": 123.4477064171214
          }
        },
        "flowElementId": "CCC39476-DEB5-4017-8FBD-4D21666626E0",
        "groupId": null,
        "id": "09DBEB37-B123-41D8-9686-0F10F9D0E42E",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onTripletexEvent",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tripletex event",
          "scope": "SINGLE_APP",
          "serviceId": "tripletex",
          "slaConditions": [],
          "staticData": {
            "event": "voucher.create"
          },
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "New voucher in Tripletex",
        "nextElementIds": [
          "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Approve supplier invoice. This is the Tripletex /supplierInvoice/id/:approve route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::approveSupplierInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Approve the invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::approveSupplierInvoice",
          "legacyElementId": "JS###v1###TripletexService###approveSupplierInvoice",
          "methodName": "approveSupplierInvoice",
          "position": {
            "x": 587.6555014763603,
            "y": 1076.8064227259597
          }
        },
        "flowElementId": "E0FFA709-5166-42A1-89AF-DAEA1AC8576C",
        "groupId": null,
        "id": "51960CD5-3868-4328-AED2-34B5D2EDCFF8",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "comment",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Approved in Slack after the three-way match."
                  }
                ],
                "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": "approveSupplierInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Approval",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Approve the invoice",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 606.3380725950659,
            "y": 447.3559631019767
          }
        },
        "flowElementId": "A4704B55-9210-45A9-9C02-4E39E949D63C",
        "groupId": null,
        "id": "D25A6C12-7EA0-446D-9CA2-D47067F4C580",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "6c2eeed2-0667-4bcf-9d67-0446eeb9f810",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Match",
                      "subPathSegments": [
                        {
                          "key": "output",
                          "optional": false
                        },
                        {
                          "key": "projectOk",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "6c2eeed2-0667-4bcf-9d67-0446eeb9f810"
            ]
          },
          "elseComponent": {
            "componentId": "B14C0DE4-B923-4C24-9786-DE6720CD710D",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Project ok",
          "storeResult": false,
          "thenComponent": {
            "componentId": "46B1D15D-6DA0-4E78-B613-E6B08197EB92",
            "componentType": "ELEMENT"
          }
        },
        "name": "Project coded right?",
        "nextElementIds": [
          "B14C0DE4-B923-4C24-9786-DE6720CD710D",
          "46B1D15D-6DA0-4E78-B613-E6B08197EB92"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Change dimension on a supplier invoice. This is the Tripletex /supplierInvoice/id/:changeDimension route.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::changeDimensionSupplierInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Move the cost to the order's project Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::changeDimensionSupplierInvoice",
          "legacyElementId": "JS###v1###TripletexService###changeDimensionSupplierInvoice",
          "methodName": "changeDimensionSupplierInvoice",
          "position": {
            "x": 817.7105496005225,
            "y": 681.163302673942
          }
        },
        "flowElementId": "E68B4BE8-A1BD-49B5-B1A2-9C5ED4C75E11",
        "groupId": null,
        "id": "B14C0DE4-B923-4C24-9786-DE6720CD710D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "invoiceId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Supplier invoice",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "debitPostingIds",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "debitPostingIds",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dimension",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "PROJECT"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dimensionId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Match",
                    "subPathSegments": [
                      {
                        "key": "output",
                        "optional": false
                      },
                      {
                        "key": "projectId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "F20BD0A6-9C2F-4152-A093-0097DC894B3F"
                  }
                ],
                "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": "changeDimensionSupplierInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Project fix",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Move the cost to the order's project",
        "nextElementIds": [
          "46B1D15D-6DA0-4E78-B613-E6B08197EB92"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Reads a single purchase order from Tripletex by its identifier.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::getPurchaseOrder",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the purchase order Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::getPurchaseOrder",
          "legacyElementId": "JS###v1###TripletexService###getPurchaseOrder",
          "methodName": "getPurchaseOrder",
          "position": {
            "x": 681.3844040100639,
            "y": 262.25366938565577
          }
        },
        "flowElementId": "E741F0E6-DE0F-4BB4-8F44-63F150A75C61",
        "groupId": null,
        "id": "59C9CB4C-CE1D-44E4-8310-4AF356102845",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "purchaseOrderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Order link",
                    "subPathSegments": [
                      {
                        "key": "values",
                        "optional": false
                      },
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "orderOut",
                        "optional": false
                      },
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "B9DE2DA6-4C0A-4EC6-B8DE-E712806C18AB"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "id,number,deliveryDate,department(id,name),project(id,name),orderLines(description,count,unitPriceExcludingVatCurrency,amountExcludingVatCurrency,product(id,number,name))"
                  }
                ],
                "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": "getPurchaseOrder",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Purchase order",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Read the purchase order",
        "nextElementIds": [
          "E62FB73E-169A-48B0-BF93-740D7E3FDE78"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the supplier invoice of a Tripletex account, with the vendor's own filters, field selection and paging.",
          "elementId": "EXTENSION:::SHARED:::default:::tripletex:::listSupplierInvoice",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the supplier invoice Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::tripletex:::listSupplierInvoice",
          "legacyElementId": "JS###v1###TripletexService###listSupplierInvoice",
          "methodName": "listSupplierInvoice",
          "position": {
            "x": 390.1715596256821,
            "y": 120.17155962568208
          }
        },
        "flowElementId": "B0C67205-189F-4106-8184-1BE76A3CE898",
        "groupId": null,
        "id": "F3FC8EFA-7D7B-4442-913D-A43D1BA9E2DB",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "id",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDateFrom",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "2000-01-01"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceDateTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "2100-01-01"
                  }
                ],
                "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": [
                  {
                    "id": "RESULT",
                    "label": "Tripletex event",
                    "subPathSegments": [
                      {
                        "key": "id",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "09DBEB37-B123-41D8-9686-0F10F9D0E42E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "supplierId",
              "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": [],
                "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,invoiceNumber,invoiceDate,invoiceDueDate,amount,amountExcludingVat,currency(code),supplier(id,name),orderLines(description,count,unitPriceExcludingVatCurrency,amountExcludingVatCurrency,product(id,number,name)),voucher(id,postings(id,row,amount,description,account(number,name),department(id,name),project(id,name)))"
                  }
                ],
                "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": "listSupplierInvoice",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Supplier invoice",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "tripletex",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the supplier invoice",
        "nextElementIds": [
          "D7165AE0-7ACE-4B02-8A99-E5AFDDD7A0F9"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "09DBEB37-B123-41D8-9686-0F10F9D0E42E",
    "groups": [],
    "id": "F125FBC1-3F4A-4C1E-AD9D-DC236BED63AA",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": null,
        "valid": true
      },
      "errorMessage": null,
      "executionStaticData": [
        {
          "description": "Your Anthropic API key, used by the AI step that matches the invoice.",
          "error": null,
          "name": "Anthropic key",
          "type": "API_KEY",
          "value": null
        },
        {
          "description": "The URL of the block Wait for the approver's answer. The Slack buttons open it.",
          "error": null,
          "name": "Answer link",
          "type": "STRING",
          "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-17T05:55:41.015Z"
}
