{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "BB63455F-FF2D-4814-A940-5951F07BD775",
    "name": "FreshBooks: monthly P&L and tax summary to finance"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": 145.0817036627153,
        "y": 56.988078452665036,
        "zoom": 0.7834971869493413
      },
      "autoSave": true,
      "descriptions": {
        "flow": "Each month, pulls last month's profit and loss and tax summary from FreshBooks, adds the headline figures to a Google Sheets tracker and posts them to the finance channel in Slack with a link to the tracker.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "Each month, pulls last month's profit and loss and tax summary from FreshBooks, adds the headline figures to a Google Sheets tracker and posts them to the finance channel in Slack with a link to the tracker.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": true,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Work out last month Result"
          },
          "position": {
            "x": 88.30241092990784,
            "y": 112.5526575376579
          }
        },
        "flowElementId": "040E7690-6051-4495-BC89-21CF040A23F6",
        "groupId": null,
        "id": "598E206F-B102-41F7-8732-021CA04B86A0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const now = new Date();\nconst first = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth() - 1, 1));\nconst last = new Date(Date.UTC(now.getUTCFullYear(), now.getUTCMonth(), 0));\nconst iso = d => d.toISOString().slice(0, 10);\nreturn {\n  from: iso(first),\n  to: iso(last),\n  label: first.toLocaleString('en-US', { month: 'long', year: 'numeric', timeZone: 'UTC' }),\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Period",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Work out last month",
        "nextElementIds": [
          "01AA585A-37F0-4FE8-81E3-9F99E31D49C1"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Pulls a financial report for a date range, profit & loss, tax summary, aging, and more.",
          "elementId": "EXTENSION:::SHARED:::default:::freshbooks:::getFinancialReport",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the profit and loss Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::freshbooks:::getFinancialReport",
          "legacyElementId": "JS###v1###FreshBooksService###getFinancialReport",
          "methodName": "getFinancialReport",
          "position": {
            "x": 384.84286683504854,
            "y": 103.26349637113267
          }
        },
        "flowElementId": "D90B0E8D-9205-49A5-A6F0-C301E437052B",
        "groupId": null,
        "id": "01AA585A-37F0-4FE8-81E3-9F99E31D49C1",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "report",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "profitloss"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "from",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "598E206F-B102-41F7-8732-021CA04B86A0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "to",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "598E206F-B102-41F7-8732-021CA04B86A0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currency",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Get the profit and loss', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getFinancialReport",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Profit and loss",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "freshbooks",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the profit and loss",
        "nextElementIds": [
          "96CCA29E-F4F6-420D-9896-B28AA10C6C1E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Pulls a financial report for a date range, profit & loss, tax summary, aging, and more.",
          "elementId": "EXTENSION:::SHARED:::default:::freshbooks:::getFinancialReport",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Get the tax summary Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::freshbooks:::getFinancialReport",
          "legacyElementId": "JS###v1###FreshBooksService###getFinancialReport",
          "methodName": "getFinancialReport",
          "position": {
            "x": 695.0523777216504,
            "y": 101.57937046391584
          }
        },
        "flowElementId": "552AE7C6-4631-47E3-875D-B2E697DD64CD",
        "groupId": null,
        "id": "96CCA29E-F4F6-420D-9896-B28AA10C6C1E",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "report",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "taxsummary"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fromDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "from",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "598E206F-B102-41F7-8732-021CA04B86A0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "toDate",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": [
                      {
                        "key": "to",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "598E206F-B102-41F7-8732-021CA04B86A0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "currency",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Get the tax summary', Error: OAuth Connection is required",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "getFinancialReport",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tax summary",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "freshbooks",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Get the tax summary",
        "nextElementIds": [
          "CA309F9A-7743-44DB-91C9-0363E0E1DA9C"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Pull the headline figures Result"
          },
          "position": {
            "x": 683.5938403298375,
            "y": 248.09832439178027
          }
        },
        "flowElementId": "2126559F-A314-49D5-9B7B-EE282BA11A1B",
        "groupId": null,
        "id": "CA309F9A-7743-44DB-91C9-0363E0E1DA9C",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Pull the headline figures', Error: The placeholder \"Report tracker spreadsheet\" has no value",
            "valid": false
          },
          "codeArguments": [
            {
              "name": "plReport",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Profit and loss",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "01AA585A-37F0-4FE8-81E3-9F99E31D49C1"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "taxReport",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Tax summary",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "96CCA29E-F4F6-420D-9896-B28AA10C6C1E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "period",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Period",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "598E206F-B102-41F7-8732-021CA04B86A0"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "trackerUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Report tracker spreadsheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Report tracker spreadsheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const pl = plReport && typeof plReport === 'object' ? (plReport.profitloss || plReport.profit_and_loss || null) : null;\nconst tx = taxReport && typeof taxReport === 'object' ? (taxReport.taxsummary || taxReport.tax_summary || null) : null;\nif (!pl && !tx) {\n  return {\n    hasFigures: false,\n    row: {},\n    text: '*The FreshBooks report for ' + period.label + ' came back empty.* Neither the profit and loss nor the tax summary returned any figures, so nothing was added to the tracker. Check the FreshBooks connection and run the reports in FreshBooks for ' + period.from + ' to ' + period.to + '.',\n  };\n}\nconst money = v => {\n  if (v === undefined || v === null || v === '') return 0;\n  if (typeof v !== 'object') return Number(v) || 0;\n  if (Array.isArray(v)) return v.reduce((t, x) => t + money(x), 0);\n  if (v.total !== undefined) return money(v.total);\n  if (v.amount !== undefined) return Number(v.amount) || 0;\n  if (Array.isArray(v.data)) return money(v.data);\n  return 0;\n};\nconst round = n => Math.round(n * 100) / 100;\nconst currency = (pl && pl.currency_code) || (tx && tx.currency_code) || '';\nconst fmt = n => n.toLocaleString('en-US', { minimumFractionDigits: 2, maximumFractionDigits: 2 }) + (currency ? ' ' + currency : '');\nlet income = '', expenses = '', netProfit = '';\nif (pl) {\n  income = round(Array.isArray(pl.income) && pl.income.length ? money(pl.income) : money(pl.total_income));\n  expenses = round(money(pl.total_expenses));\n  netProfit = round(pl.net_profit !== undefined ? money(pl.net_profit) : income - expenses);\n}\nlet taxCollected = '', taxPaid = '', netTax = '';\nif (tx) {\n  const taxes = Array.isArray(tx.taxes) ? tx.taxes : [];\n  taxCollected = round(taxes.reduce((t, x) => t + money(x.tax_collected), 0));\n  taxPaid = round(taxes.reduce((t, x) => t + money(x.tax_paid), 0));\n  netTax = round(taxes.some(x => x.net_tax !== undefined) ? taxes.reduce((t, x) => t + money(x.net_tax), 0) : taxCollected - taxPaid);\n}\nconst row = {\n  'Month': period.label,\n  'From': period.from,\n  'To': period.to,\n  'Currency': currency,\n  'Income': income,\n  'Expenses': expenses,\n  'Net profit': netProfit,\n  'Tax collected': taxCollected,\n  'Tax paid': taxPaid,\n  'Net tax': netTax,\n};\nconst lines = ['*FreshBooks figures for ' + period.label + '*'];\nif (pl) {\n  lines.push('Income: ' + fmt(income), 'Expenses: ' + fmt(expenses), 'Net profit: ' + fmt(netProfit));\n} else {\n  lines.push('The profit and loss report came back empty, so income, expenses and net profit are missing.');\n}\nif (tx) {\n  lines.push('Tax collected: ' + fmt(taxCollected) + ', tax paid: ' + fmt(taxPaid) + ', net tax: ' + fmt(netTax));\n} else {\n  lines.push('The tax summary came back empty, so the tax figures are missing.');\n}\nif (trackerUrl) lines.push('<' + trackerUrl + '|Open the report tracker>');\nreturn { hasFigures: true, row, text: lines.join('\\n'), currency };"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Figures",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Pull the headline figures",
        "nextElementIds": [
          "907E76B3-E01D-4855-B067-E9DA77899794"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Adds new data rows to Google Sheets for AI agents to store processed results, log user interactions, or collect data from automated workflows. Perfect for building databases, tracking metrics, saving form submissions, or creating data collection pipelines.",
          "elementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Add the month to the tracker Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::google-sheets:::addRow",
          "legacyElementId": "JS###v1###GoogleSheets###addRow",
          "methodName": "addRow",
          "position": {
            "x": 879.1523989923468,
            "y": 559.1715139148373
          }
        },
        "flowElementId": "01BB4BC2-8D99-4C24-A298-5D8B2121ED68",
        "groupId": null,
        "id": "1D6C1C3E-0FEC-45D0-9277-CFEDA30FD74D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Report tracker spreadsheet",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Report tracker spreadsheet"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sheetId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "NUMBER",
                    "label": null,
                    "type": "INPUT",
                    "value": 0
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "row",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Figures",
                    "subPathSegments": [
                      {
                        "key": "row",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CA309F9A-7743-44DB-91C9-0363E0E1DA9C"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Add the month to the tracker', Error: The placeholder \"Report tracker spreadsheet\" has no value",
            "valid": false
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "addRow",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Tracker row",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "google-sheets",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Add the month to the tracker",
        "nextElementIds": [
          "52A440AA-BB12-45AF-A38E-870BFC664308"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Post the figures to finance Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 519.5405332987029,
            "y": 566.3981208557615
          }
        },
        "flowElementId": "E78F341D-C024-44A6-91FC-808D75003923",
        "groupId": null,
        "id": "52A440AA-BB12-45AF-A38E-870BFC664308",
        "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": "Figures",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "CA309F9A-7743-44DB-91C9-0363E0E1DA9C"
                  }
                ],
                "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": "EXPRESSION",
                "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": "Finance post",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the figures to finance",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 700.765443360711,
            "y": 377.7760192474763
          }
        },
        "flowElementId": "65D5CC48-FD48-4FC5-BF20-850880890DC5",
        "groupId": null,
        "id": "907E76B3-E01D-4855-B067-E9DA77899794",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "f1246c44-cd70-436f-802d-9cd0056f5790",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Figures",
                      "subPathSegments": [
                        {
                          "key": "hasFigures",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "CA309F9A-7743-44DB-91C9-0363E0E1DA9C"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "f1246c44-cd70-436f-802d-9cd0056f5790"
            ]
          },
          "elseComponent": {
            "componentId": "52A440AA-BB12-45AF-A38E-870BFC664308",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "has",
          "storeResult": false,
          "thenComponent": {
            "componentId": "1D6C1C3E-0FEC-45D0-9277-CFEDA30FD74D",
            "componentType": "ELEMENT"
          }
        },
        "name": "Report has figures?",
        "nextElementIds": [
          "1D6C1C3E-0FEC-45D0-9277-CFEDA30FD74D",
          "52A440AA-BB12-45AF-A38E-870BFC664308"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "598E206F-B102-41F7-8732-021CA04B86A0",
    "groups": [],
    "id": "01A0E36A-B7D3-4AF1-ADCC-2F3E69422A00",
    "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": "Block 'Pull the headline figures' has an invalid configuration. Code Argument 'trackerUrl' has invalid value. Placeholder Data 'Report tracker spreadsheet': value is required",
      "executionStaticData": [
        {
          "description": "URL of the Google Sheets tracker the monthly figures go into. Its first sheet needs the column headers Month, From, To, Currency, Income, Expenses, Net profit, Tax collected, Tax paid, Net tax.",
          "error": "Placeholder Data 'Report tracker spreadsheet': value is required",
          "name": "Report tracker spreadsheet",
          "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-18T10:17:57.985Z"
}
