{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "85F2104C-3C09-46C3-885C-E0DA7CCFE85B",
    "name": "Acumatica: parsed invoice to AP bill"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 347.90046532064537,
        "y": 39.84436631147912,
        "zoom": 0.5672277424679774
      },
      "autoSave": true,
      "descriptions": {
        "flow": "When Parseur finishes reading a vendor invoice, finds the vendor in Acumatica, checks it is active and the invoice is not already entered, creates the bill on hold with the PDF attached and tells AP in Slack. Anything that fails a check goes to AP in Slack instead.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When Parseur finishes reading a vendor invoice, finds the vendor in Acumatica, checks it is active and the invoice is not already entered, creates the bill on hold with the PDF attached and tells AP in Slack. Anything that fails a check goes to AP in Slack instead.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": -39.1524365153339,
            "y": 217.10917670472
          }
        },
        "flowElementId": "C7410652-014D-4DBB-BB7F-C5427C3BCE7E",
        "groupId": null,
        "id": "8AF3F147-7A32-4EF7-805A-FF51F574058B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "4f9b0058-c736-47a1-9c3e-68ea3c10df3b",
                "nestedOperation": null,
                "operation": "arrayIsNotEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Vendor match",
                      "subPathSegments": null,
                      "type": "ELEMENT_LINK",
                      "value": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "4f9b0058-c736-47a1-9c3e-68ea3c10df3b"
            ]
          },
          "elseComponent": {
            "componentId": "225323F7-FF47-4E5C-8921-E92E51514AE2",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Vendor on file",
          "storeResult": false,
          "thenComponent": {
            "componentId": "CB42E022-CA06-4AB4-928B-1560E9E5E573",
            "componentType": "ELEMENT"
          }
        },
        "name": "Vendor on file?",
        "nextElementIds": [
          "CB42E022-CA06-4AB4-928B-1560E9E5E573",
          "225323F7-FF47-4E5C-8921-E92E51514AE2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Checks if a bill with the specified vendor ID and vendor reference number already exists in Acumatica. Returns matching bills to prevent duplicate bill entry. An empty array indicates no duplicates were found.",
          "elementId": "EXTENSION:::SHARED:::default:::acumatica:::checkDuplicateBill",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check for a duplicate bill Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::acumatica:::checkDuplicateBill",
          "legacyElementId": "JS###v1###AcumaticaService###checkDuplicateBill",
          "methodName": "checkDuplicateBill",
          "position": {
            "x": 339.2618656352416,
            "y": 384.70137027122456
          }
        },
        "flowElementId": "1B8D79A0-3164-466C-8D21-DFED8C996EF6",
        "groupId": null,
        "id": "97C39587-59C4-4E00-A616-443334CE0820",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "vendorId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Vendor match",
                    "subPathSegments": [
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "VendorID",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "vendorRef",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "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": "checkDuplicateBill",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Duplicate check",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "acumatica",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check for a duplicate bill",
        "nextElementIds": [
          "66E36ECF-1F9D-438B-BE1B-87A9DA52883B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Creates a new Accounts Payable bill in Acumatica. The bill is created in Hold status by default. Provide vendor, reference number, dates, and optionally line item details as a JSON array.",
          "elementId": "EXTENSION:::SHARED:::default:::acumatica:::createBill",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Create the bill in Acumatica Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::acumatica:::createBill",
          "legacyElementId": "JS###v1###AcumaticaService###createBill",
          "methodName": "createBill",
          "position": {
            "x": 715.9449731074967,
            "y": 697.7047961965548
          }
        },
        "flowElementId": "6239F2A4-67BE-4EF0-A10A-2B82E3205FB1",
        "groupId": null,
        "id": "C1D79ADE-E52A-4659-AFFD-4B6AB6907F3F",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "vendor",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Vendor match",
                    "subPathSegments": [
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "VendorID",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "vendorRef",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "date",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceDate",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "dueDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "DueDate",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "postPeriod",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "description",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Invoice "
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " from "
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "VendorName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "locationId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "terms",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "detailLines",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Bill lines",
                    "subPathSegments": [
                      {
                        "key": "lines",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "747CF94C-AC24-43AE-879A-4EC3D43FC37D"
                  }
                ],
                "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": "createBill",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "New bill",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "acumatica",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Create the bill in Acumatica",
        "nextElementIds": [
          "1297B0B5-5C93-46AF-8624-F7D986391329"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Send the invoice to AP Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": -63.18952492566151,
            "y": 716.9131139653022
          }
        },
        "flowElementId": "AFFE1AE0-0F35-46AE-8211-F78735ACD7E1",
        "groupId": null,
        "id": "8FB4AB27-EC5D-4F16-9C11-E2B894CF9A42",
        "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": "AP note",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "225323F7-FF47-4E5C-8921-E92E51514AE2"
                  }
                ],
                "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": "Invoice sent to AP",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Send the invoice to AP",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggered when a document is processed in Parseur (realtime webhook)",
          "elementId": "EXTENSION:::SHARED:::default:::parseur:::onDocumentProcessedRealtime",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::parseur:::onDocumentProcessedRealtime",
          "legacyElementId": "JS###v1###ParseurService###onDocumentProcessedRealtime",
          "methodName": "onDocumentProcessedRealtime",
          "position": {
            "x": -30.639319991311922,
            "y": 32.01821880790615
          }
        },
        "flowElementId": "EB45F173-8DB1-44F7-8F34-A21098B25A19",
        "groupId": null,
        "id": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'Invoice parsed in Parseur', Error: Mailbox is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onDocumentProcessedRealtime",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Parsed invoice",
          "scope": "SINGLE_APP",
          "serviceId": "parseur",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Invoice parsed in Parseur",
        "nextElementIds": [
          "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves a list of vendors from Acumatica. Use the optional OData filter to narrow results by status, class, or other fields. Useful for verifying seed data or browsing available vendors.",
          "elementId": "EXTENSION:::SHARED:::default:::acumatica:::listVendors",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the vendor in Acumatica Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::acumatica:::listVendors",
          "legacyElementId": "JS###v1###AcumaticaService###listVendors",
          "methodName": "listVendors",
          "position": {
            "x": 328.71001497509917,
            "y": 35.18757232363363
          }
        },
        "flowElementId": "D3A8447E-5552-4107-A76C-945D69EDCA9F",
        "groupId": null,
        "id": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "filter",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "VendorName eq '"
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "VendorName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "'"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "select",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "VendorID,VendorName,Status"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "top",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 1
                  }
                ],
                "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": "listVendors",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Vendor match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "acumatica",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the vendor in Acumatica",
        "nextElementIds": [
          "8AF3F147-7A32-4EF7-805A-FF51F574058B"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads a file from the provided URL and attaches it to an existing bill in Acumatica. Use this to attach the original billback PDF, supporting documentation, or invoice images to the Acumatica record.",
          "elementId": "EXTENSION:::SHARED:::default:::acumatica:::attachFileToBill",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Attach the invoice PDF Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::acumatica:::attachFileToBill",
          "legacyElementId": "JS###v1###AcumaticaService###attachFileToBill",
          "methodName": "attachFileToBill",
          "position": {
            "x": 727.7738461336818,
            "y": 862.4052708554482
          }
        },
        "flowElementId": "7402C5FD-6B94-40AE-906F-53C0858CE1B7",
        "groupId": null,
        "id": "1297B0B5-5C93-46AF-8624-F7D986391329",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "referenceNbr",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "New bill",
                    "subPathSegments": [
                      {
                        "key": "ReferenceNbr",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1D79ADE-E52A-4659-AFFD-4B6AB6907F3F"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "name",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "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": "attachFileToBill",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Attached PDF",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "acumatica",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Attach the invoice PDF",
        "nextElementIds": [
          "C6E20E7C-A149-46CE-890F-1F8810E283EC"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Retrieves a vendor record from Acumatica by Vendor ID to validate the vendor exists and is active. Returns the full vendor record including name, status, and payment terms.",
          "elementId": "EXTENSION:::SHARED:::default:::acumatica:::validateVendor",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Validate the vendor Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::acumatica:::validateVendor",
          "legacyElementId": "JS###v1###AcumaticaService###validateVendor",
          "methodName": "validateVendor",
          "position": {
            "x": 357.97415991337454,
            "y": 204.9526362324768
          }
        },
        "flowElementId": "5AF9FFE9-427F-4DD0-9CD5-E4764FDE90FA",
        "groupId": null,
        "id": "CB42E022-CA06-4AB4-928B-1560E9E5E573",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "vendorId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Vendor match",
                    "subPathSegments": [
                      {
                        "index": 0,
                        "last": false
                      },
                      {
                        "key": "VendorID",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
                  }
                ],
                "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": "validateVendor",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Vendor record",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "acumatica",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Validate the vendor",
        "nextElementIds": [
          "97C39587-59C4-4E00-A616-443334CE0820"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 315.59843959692296,
            "y": 559.681253178712
          }
        },
        "flowElementId": "393E858B-9F06-4703-AB36-8936B798AA70",
        "groupId": null,
        "id": "66E36ECF-1F9D-438B-BE1B-87A9DA52883B",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "265b3e28-e592-4b48-8f9e-984e1e512bc8",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Vendor record",
                      "subPathSegments": [
                        {
                          "key": "Status",
                          "optional": false
                        },
                        {
                          "key": "value",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CB42E022-CA06-4AB4-928B-1560E9E5E573"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "Active"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              },
              {
                "id": "87657240-09e4-4a68-8a3b-bbb698da92fa",
                "nestedOperation": null,
                "operation": "arrayIsEmpty",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Duplicate check",
                      "subPathSegments": null,
                      "type": "ELEMENT_LINK",
                      "value": "97C39587-59C4-4E00-A616-443334CE0820"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "ARRAY",
                "values": []
              }
            ],
            "grouping": [
              "265b3e28-e592-4b48-8f9e-984e1e512bc8",
              "AND",
              "87657240-09e4-4a68-8a3b-bbb698da92fa"
            ]
          },
          "elseComponent": {
            "componentId": "225323F7-FF47-4E5C-8921-E92E51514AE2",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Checks passed",
          "storeResult": false,
          "thenComponent": {
            "componentId": "747CF94C-AC24-43AE-879A-4EC3D43FC37D",
            "componentType": "ELEMENT"
          }
        },
        "name": "Active vendor and new invoice?",
        "nextElementIds": [
          "747CF94C-AC24-43AE-879A-4EC3D43FC37D",
          "225323F7-FF47-4E5C-8921-E92E51514AE2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the note for AP Result"
          },
          "position": {
            "x": -50.64130797399925,
            "y": 561.6340370232591
          }
        },
        "flowElementId": "EA2337E0-0F7B-46D4-81FC-D6350918A9D0",
        "groupId": null,
        "id": "225323F7-FF47-4E5C-8921-E92E51514AE2",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "vendorMatch",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Vendor match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "303AB91D-C4AE-4335-8A7F-9EAEBE62FDA5"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "vendorRecord",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Vendor record",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "CB42E022-CA06-4AB4-928B-1560E9E5E573"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "duplicateBills",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Duplicate check",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "97C39587-59C4-4E00-A616-443334CE0820"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "vendorName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "VendorName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "total",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "Total",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "docUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "OriginalDocument",
                        "optional": false
                      },
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const vendors = Array.isArray(vendorMatch) ? vendorMatch : [];\nconst duplicates = Array.isArray(duplicateBills) ? duplicateBills : [];\nconst vendorId = vendors[0]?.VendorID?.value;\nconst status = vendorRecord?.Status?.value;\nconst reasons = [];\nif (!vendorId) {\n  reasons.push(`No vendor in Acumatica is named \"${vendorName}\".`);\n} else {\n  if (status && status !== 'Active') {\n    reasons.push(`Vendor ${vendorId} is ${status} in Acumatica, not Active.`);\n  }\n  if (duplicates.length) {\n    reasons.push(`Bill ${duplicates[0].ReferenceNbr?.value} already carries invoice ${invoiceNumber} for vendor ${vendorId}.`);\n  }\n}\nconst lines = [\n  `*Invoice ${invoiceNumber} from ${vendorName} was not entered in Acumatica*`,\n  `Amount on the invoice: ${total}`,\n  ...reasons,\n  docUrl ? `<${docUrl}|Open the invoice>` : null,\n].filter(Boolean);\nreturn { text: lines.join('\\n') };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "AP note",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the note for AP",
        "nextElementIds": [
          "8FB4AB27-EC5D-4F16-9C11-E2B894CF9A42"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Build the bill lines Result"
          },
          "position": {
            "x": 733.0000301144698,
            "y": 568.2273902275405
          }
        },
        "flowElementId": "A8B571BA-C33D-4E14-B97B-276E088E10C8",
        "groupId": null,
        "id": "747CF94C-AC24-43AE-879A-4EC3D43FC37D",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "lineItems",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "LineItems",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "invoiceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "total",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "Total",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const num = (v) => {\n  if (typeof v === 'number') return v;\n  const n = parseFloat(String(v ?? '').replace(/[^0-9.\\-]/g, ''));\n  return Number.isFinite(n) ? n : 0;\n};\nconst items = Array.isArray(lineItems) ? lineItems : [];\nconst lines = items.map((item) => {\n  const qty = num(item.Quantity);\n  const unitCost = num(item.UnitPrice);\n  const amount = num(item.Amount) || qty * unitCost;\n  const line = { Description: String(item.Description || '').slice(0, 250), ExtendedCost: amount };\n  if (qty) line.Qty = qty;\n  if (unitCost) line.UnitCost = unitCost;\n  return line;\n}).filter((line) => line.ExtendedCost);\nif (!lines.length) {\n  lines.push({ Description: `Invoice ${invoiceNumber}`, ExtendedCost: num(total) });\n}\nreturn { lines, total: lines.reduce((sum, line) => sum + line.ExtendedCost, 0) };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Bill lines",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Build the bill lines",
        "nextElementIds": [
          "C1D79ADE-E52A-4659-AFFD-4B6AB6907F3F"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "dynamicOptionLabels": {
            "channelId": {}
          },
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post the new bill to AP Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 730.5346372014419,
            "y": 1017.9999398416253
          }
        },
        "flowElementId": "56E2A7C3-F65F-447B-A98D-AB70FCE5530E",
        "groupId": null,
        "id": "C6E20E7C-A149-46CE-890F-1F8810E283EC",
        "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": "*New bill "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "New bill",
                    "subPathSegments": [
                      {
                        "key": "ReferenceNbr",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1D79ADE-E52A-4659-AFFD-4B6AB6907F3F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " in Acumatica, on hold for approval*"
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "VendorName",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " invoice "
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "InvoiceNumber",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " for "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "New bill",
                    "subPathSegments": [
                      {
                        "key": "Amount",
                        "optional": false
                      },
                      {
                        "key": "value",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "C1D79ADE-E52A-4659-AFFD-4B6AB6907F3F"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": ", due "
                  },
                  {
                    "id": "RESULT",
                    "label": "Parsed invoice",
                    "subPathSegments": [
                      {
                        "key": "parsedData",
                        "optional": false
                      },
                      {
                        "key": "DueDate",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "."
                  },
                  {
                    "id": "NEWLINE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "\n"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "Vendor checked and active, no earlier bill with this invoice number. The invoice PDF is attached to the bill."
                  }
                ],
                "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": "Bill posted to AP",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the new bill to AP",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "B658BD8F-986C-4EEC-BD83-AD22F867ABC7",
    "groups": [],
    "id": "B380BA72-93CF-40DE-A563-3366FA45EC72",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [],
      "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:54:00.471Z"
}
