{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "C8B1370E-1296-44F8-A170-AA0BC81AA0F2",
    "name": "Dropbox: month-end load paperwork audit"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -68.98796886058032,
        "y": -177.97593772116065,
        "zoom": 0.99
      },
      "autoSave": false,
      "descriptions": {
        "flow": "On a schedule, goes through the load folders in Dropbox and finds the ones with no rate con, BOL or POD. Each such load is checked in McLeod LoadMaster: if it is delivered and McLeod Imaging doesn't hold the document either, it goes on a list posted to billing in Slack.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "On a schedule, goes through the load folders in Dropbox and finds the ones with no rate con, BOL or POD. Each such load is checked in McLeod LoadMaster: if it is delivered and McLeod Imaging doesn't hold the document either, it goes on a list posted to billing in Slack.",
    "elements": [
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find folders missing paperwork Result"
          },
          "position": {
            "x": 773,
            "y": 220
          }
        },
        "flowElementId": "1D34EA7A-8DE0-419F-973D-B0C55E541A6D",
        "groupId": null,
        "id": "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "files",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Files",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Files",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Files",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "root",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Loads folder",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Loads folder"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "daysBack",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Days back",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Days back"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const rootText = String(root || '').trim().replace(/\\/+$/, '');\nconst rootPath = rootText && !rootText.startsWith('/') ? `/${rootText}` : rootText;\nconst base = rootPath.toLowerCase();\nconst days = Number(daysBack) || 35;\nconst since = Date.now() - days * 86400000;\nconst kinds = {\n  'Rate con': /rate ?con|rate confirmation/i,\n  BOL: /(^|[^a-z])bol([^a-z]|$)|bill of lading/i,\n  POD: /(^|[^a-z])pod([^a-z]|$)|proof of delivery/i,\n};\nconst folders = {};\nfor (const e of Array.isArray(files) ? files : []) {\n  const p = String((e && e.path) || '');\n  if (!p.toLowerCase().startsWith(`${base}/`)) continue;\n  const rest = p.slice(base.length + 1).split('/');\n  if (rest.length !== 2) continue;\n  const load = rest[0];\n  const file = rest[1];\n  const key = load.toLowerCase();\n  const f = folders[key] || (folders[key] = { loadNumber: load, folderPath: `${p.slice(0, base.length)}/${load}`, has: {}, newest: 0 });\n  for (const k of Object.keys(kinds)) if (kinds[k].test(file)) f.has[k] = true;\n  const t = Date.parse(e.modified) || 0;\n  if (t > f.newest) f.newest = t;\n}\nconst recent = Object.values(folders).filter((f) => f.newest >= since);\nconst incomplete = recent\n  .map((f) => ({ loadNumber: f.loadNumber, folderPath: f.folderPath, missing: Object.keys(kinds).filter((k) => !f.has[k]) }))\n  .filter((f) => f.missing.length > 0);\nreturn { folders: incomplete, checked: recent.length, days, root: rootPath || '/' };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Incomplete",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Find folders missing paperwork",
        "nextElementIds": [
          "C69EAF2C-7666-46EF-969B-6EBDC95274D2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Finds a load by its order number, PRO number, bill of lading, consignee reference or a stop reference number (McLeod order tracking search) and returns the first match in full, as Get Load does, with every match listed. Returns found: false instead of failing when nothing matches.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::findLoadByNumber",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Find the load in McLeod Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::findLoadByNumber",
          "legacyElementId": null,
          "methodName": "findLoadByNumber",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "CE59BEE3-EC1D-46ED-BD7A-21F5222EC420",
        "groupId": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "id": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": [
                      {
                        "key": "loadNumber",
                        "optional": false
                      }
                    ],
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "proNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "billOfLading",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "consigneeReference",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "referenceNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "findLoadByNumber",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "McLeod match",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load in McLeod",
        "nextElementIds": [
          "0EAB94B5-6717-40D9-B63E-1251F08528E0"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Note what's missing Result"
          },
          "position": {
            "x": 1054,
            "y": 49
          }
        },
        "flowElementId": "D61C34C0-F631-4F2D-8E0A-7F86F40BDBCD",
        "groupId": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "id": "718F5A60-6C48-4466-BDCE-A1DB53B94293",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "item",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "label": null,
                    "subPathSegments": null,
                    "type": "LIST_ITERATOR_CURRENT_ELEMENT",
                    "value": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "match",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "docList",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod documents",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "809C69B0-E798-43A6-B314-B59DB7A70B01"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "types",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "McLeod document types",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "McLeod document types"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const it = item && typeof item === 'object' ? item : {};\nconst load = match && match.load ? match.load : {};\nlet codes = types;\nif (typeof codes === 'string') { try { codes = JSON.parse(codes); } catch (e) { codes = {}; } }\nif (!codes || typeof codes !== 'object') codes = {};\nconst docs = docList && Array.isArray(docList.documents) ? docList.documents : [];\nconst inMcLeod = new Set(docs.map((d) => String(d.documentTypeId || '').toUpperCase()));\nconst missing = (Array.isArray(it.missing) ? it.missing : []).filter((k) => !(codes[k] && inMcLeod.has(String(codes[k]).toUpperCase())));\nif (!missing.length) return { line: '' };\nconst carrier = (load.carrier && load.carrier.name) || '';\nconst customer = (load.customer && load.customer.name) || '';\nconst stops = Array.isArray(load.stops) ? load.stops : [];\nconst last = stops[stops.length - 1] || {};\nconst delivered = String(last.actualArrival || last.actualDeparture || '').slice(0, 10);\nconst link = 'https://www.dropbox.com/home' + String(it.folderPath || '').split('/').map(encodeURIComponent).join('/');\nconst facts = [\n  customer,\n  carrier ? `carrier ${carrier}` : '',\n  delivered ? `delivered ${delivered}` : '',\n  load.readyToBill === 'Y' ? 'already marked ready to bill' : '',\n].filter(Boolean).join(', ');\nreturn { line: `• <${link}|Load ${it.loadNumber}>${facts ? ` (${facts})` : ''}: no ${missing.join(', no ')}\\n` };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Missing",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Note what's missing",
        "nextElementIds": [
          "EFF14CFF-A2EA-48C9-A254-AD5F7CCC0074"
        ],
        "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 audit to billing Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 433,
            "y": 381
          }
        },
        "flowElementId": "0D849D4F-DB84-4913-94E8-394A642C95A0",
        "groupId": null,
        "id": "A9D0C8D5-00F8-41BE-878F-72D521E256FE",
        "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": "Audit",
                    "subPathSegments": [
                      {
                        "key": "text",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "49F660CB-A26F-4143-8BA8-FDF988E013C5"
                  }
                ],
                "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": "EXPRESSION",
                "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": "Audit message",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Post the audit to billing",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Lists the documents McLeod Imaging holds for a load (rate confirmation, BOL, POD and the rest): those attached to the order and, unless turned off, those attached to its movements. Each has the ID that Download Document takes.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::listLoadDocuments",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Check McLeod Imaging Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::listLoadDocuments",
          "legacyElementId": null,
          "methodName": "listLoadDocuments",
          "position": {
            "x": 733,
            "y": 40
          }
        },
        "flowElementId": "D6BF9CB5-4A29-48C9-AB86-FE96CF5DBB5D",
        "groupId": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "id": "809C69B0-E798-43A6-B314-B59DB7A70B01",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod match",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeMovementDocuments",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "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": "listLoadDocuments",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "McLeod documents",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Check McLeod Imaging",
        "nextElementIds": [
          "718F5A60-6C48-4466-BDCE-A1DB53B94293"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Report": "2ebcc9f5-9426-4ab0-89c7-aca25bfabb4d"
          },
          "position": {
            "x": 1195,
            "y": 220
          }
        },
        "flowElementId": "DECD5A51-E772-4774-A652-8954922D8279",
        "groupId": null,
        "id": "C69EAF2C-7666-46EF-969B-6EBDC95274D2",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Report",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_STRING",
                    "label": null,
                    "type": "KEYWORD",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "b2",
          "storeResult": true
        },
        "name": "Start the report",
        "nextElementIds": [],
        "nextGroupIds": [
          "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Files": "bf16ddd4-05b0-400b-a05b-10c2c6724269",
            "Cursor": "1c033c3a-1796-4b32-8030-758e0e61c72b",
            "More": "34038645-a62e-45c4-a612-a302869a85e3"
          },
          "position": {
            "x": 751,
            "y": 409
          }
        },
        "flowElementId": "C3003A5B-827E-417A-BDF0-AF55C659B4D9",
        "groupId": "A320BA42-D11A-4D95-BF4A-98F7484AF114",
        "id": "19134500-FC74-4BA6-8E1E-88D977E105C2",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Files",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Page",
                    "subPathSegments": [
                      {
                        "key": "files",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4360EFC8-F896-413C-8A06-D2751C6DC428"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Cursor",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Page",
                    "subPathSegments": [
                      {
                        "key": "cursor",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4360EFC8-F896-413C-8A06-D2751C6DC428"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "More",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Page",
                    "subPathSegments": [
                      {
                        "key": "more",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "4360EFC8-F896-413C-8A06-D2751C6DC428"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "b1",
          "storeResult": true
        },
        "name": "Save the page",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Write the audit Result"
          },
          "position": {
            "x": 810,
            "y": 390
          }
        },
        "flowElementId": "09B800D3-7994-4270-BB04-A2CB57910B39",
        "groupId": null,
        "id": "49F660CB-A26F-4143-8BA8-FDF988E013C5",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "report",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Report",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Report",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Report",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "checked",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Incomplete",
                    "subPathSegments": [
                      {
                        "key": "checked",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "days",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Incomplete",
                    "subPathSegments": [
                      {
                        "key": "days",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "root",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Incomplete",
                    "subPathSegments": [
                      {
                        "key": "root",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const lines = String(report || '').split('\\n').filter(Boolean);\nconst n = Number(checked) || 0;\nconst head = lines.length\n  ? `*Load paperwork audit: ${lines.length} delivered load${lines.length === 1 ? '' : 's'} missing a rate con, BOL or POD*`\n  : '*Load paperwork audit: every delivered load checked has its rate con, BOL and POD*';\nconst scope = `Checked ${n} load folder${n === 1 ? '' : 's'} in ${root} with a file added in the last ${days} days, against Dropbox and McLeod Imaging.`;\nlet body = lines.join('\\n');\nif (body.length > 35000) {\n  const cut = body.slice(0, body.lastIndexOf('\\n', 35000));\n  const shown = cut.split('\\n').length;\n  body = `${cut}\\nand ${lines.length - shown} more`;\n}\nreturn { text: [head, scope, body].filter(Boolean).join('\\n') };\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Audit",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Write the audit",
        "nextElementIds": [
          "A9D0C8D5-00F8-41BE-878F-72D521E256FE"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": true,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Cursor": "84323fe2-d0fa-4b15-9797-51bcc543349f",
            "More": "74467b99-3492-4c4f-83ba-6e44d78d7ebc",
            "Files": "24ec3694-b4ce-4f1a-82bd-8083295dafe6"
          },
          "position": {
            "x": 110,
            "y": 220
          }
        },
        "flowElementId": "FBDD2537-A197-4F37-98D0-6AE331632586",
        "groupId": null,
        "id": "8303BF18-7EF3-42BD-AAC1-30F3F0918D2B",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Cursor",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_STRING",
                    "label": null,
                    "type": "KEYWORD",
                    "value": ""
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "More",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "yes"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "Files",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EMPTY_LIST",
                    "label": null,
                    "type": "KEYWORD",
                    "value": "arrays.create()"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "b0",
          "storeResult": true
        },
        "name": "Start the listing",
        "nextElementIds": [],
        "nextGroupIds": [
          "A320BA42-D11A-4D95-BF4A-98F7484AF114"
        ],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "notes": "Lists the files and subfolders inside a Dropbox folder. Use this to enumerate a directory before downloading, processing, or organizing items. Supports recursive traversal, pagination, and incremental change tracking through the returned cursor.",
          "elementId": "EXTENSION:::SHARED:::default:::dropbox-service:::listFolder",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "List the load folders Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::dropbox-service:::listFolder",
          "legacyElementId": "JS###v1###DropboxService###listFolder",
          "methodName": "listFolder",
          "position": {
            "x": 110,
            "y": 400
          }
        },
        "flowElementId": "8A0EF4C0-1A3F-49B0-A5F9-DAF07CEB7253",
        "groupId": "A320BA42-D11A-4D95-BF4A-98F7484AF114",
        "id": "6173B887-9FCE-4563-9738-2A2726FF885D",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "folderPath",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Loads folder",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Loads folder"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "recursive",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_TRUE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": true
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "includeDeleted",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "cursor",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Cursor",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Cursor",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Cursor",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'List the load folders', 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": "listFolder",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Listing",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "dropbox-service",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "List the load folders",
        "nextElementIds": [
          "4360EFC8-F896-413C-8A06-D2751C6DC428"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "data-bucket",
          "isFirstElement": false,
          "blockDefinitionId": "data-bucket",
          "fieldKeys": {
            "Report": "fe5c91a3-2cbd-4121-a05c-765eee51222d"
          },
          "position": {
            "x": 1054,
            "y": 219
          }
        },
        "flowElementId": "7CBFD308-7146-4965-BB96-F7E25633C446",
        "groupId": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "id": "EFF14CFF-A2EA-48C9-A254-AD5F7CCC0074",
        "metaInfo": {
          "bucketName": "Default",
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "fields": [
            {
              "name": "Report",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Report",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Report",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Report",
                        "optional": false
                      }
                    ]
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Missing",
                    "subPathSegments": [
                      {
                        "key": "line",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "718F5A60-6C48-4466-BDCE-A1DB53B94293"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "b3",
          "storeResult": true
        },
        "name": "Add it to the report",
        "nextElementIds": [],
        "nextGroupIds": [],
        "type": "DATA_BUCKET"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 433,
            "y": 49
          }
        },
        "flowElementId": "DE106E41-6DD0-4C12-B952-3E8EEA43CDA3",
        "groupId": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "id": "0EAB94B5-6717-40D9-B63E-1251F08528E0",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "09eb0413-06c9-4900-9be2-c9eb36c91318",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod match",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              },
              {
                "id": "21e2e1c7-3b47-4d2e-b2cb-2e0aa2a77b5e",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod match",
                      "subPathSegments": [
                        {
                          "key": "load",
                          "optional": false
                        },
                        {
                          "key": "status",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "D"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "09eb0413-06c9-4900-9be2-c9eb36c91318",
              "AND",
              "21e2e1c7-3b47-4d2e-b2cb-2e0aa2a77b5e"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load delivered",
          "storeResult": false,
          "thenComponent": {
            "componentId": "809C69B0-E798-43A6-B314-B59DB7A70B01",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load delivered?",
        "nextElementIds": [
          "809C69B0-E798-43A6-B314-B59DB7A70B01"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Keep the files on this page Result"
          },
          "position": {
            "x": 410,
            "y": 409
          }
        },
        "flowElementId": "72684414-DD67-4C76-BBCD-63671E38222D",
        "groupId": "A320BA42-D11A-4D95-BF4A-98F7484AF114",
        "id": "4360EFC8-F896-413C-8A06-D2751C6DC428",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "listing",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Listing",
                    "subPathSegments": null,
                    "type": "ELEMENT_LINK",
                    "value": "6173B887-9FCE-4563-9738-2A2726FF885D"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "files",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                    "label": "Default - Files",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_PATH",
                    "value": "executionContext.dataBuckets.Default.Files",
                    "valueSegments": [
                      {
                        "key": "executionContext",
                        "optional": false
                      },
                      {
                        "key": "dataBuckets",
                        "optional": false
                      },
                      {
                        "key": "Default",
                        "optional": false
                      },
                      {
                        "key": "Files",
                        "optional": false
                      }
                    ]
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const prev = Array.isArray(files) ? files : [];\nconst page = listing && Array.isArray(listing.entries) ? listing.entries : [];\nconst kept = page\n  .filter((e) => e && e['.tag'] === 'file')\n  .map((e) => ({ path: e.path_display || e.path_lower || '', modified: e.server_modified || '' }));\nreturn {\n  files: prev.concat(kept),\n  cursor: (listing && listing.cursor) || '',\n  more: listing && listing.has_more ? 'yes' : 'no',\n};\n"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Page",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Keep the files on this page",
        "nextElementIds": [
          "19134500-FC74-4BA6-8E1E-88D977E105C2"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      }
    ],
    "firstElementId": "8303BF18-7EF3-42BD-AAC1-30F3F0918D2B",
    "groups": [
      {
        "clientMetadata": {
          "elementId": "repeat",
          "isFirstElement": false,
          "blockDefinitionId": "repeat",
          "viewport": {
            "x": -70,
            "y": -360,
            "zoom": 1
          },
          "position": {
            "x": 410,
            "y": 220
          }
        },
        "flowElementId": "30869B1B-B155-4FB2-B561-BF0D2A5120C2",
        "groupId": null,
        "id": "A320BA42-D11A-4D95-BF4A-98F7484AF114",
        "loopType": "REPEAT",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": "Block: 'Page through the load folders', Error: Children have error",
            "valid": false
          },
          "condition": {
            "conditionParts": [
              {
                "id": "fd7eb529-c55b-4e3b-aaf5-57e248d09a6c",
                "nestedOperation": null,
                "operation": "equal",
                "property": {
                  "expression": [
                    {
                      "id": "EXECUTION_CONTEXT_DATA_BUCKET_VARIABLE",
                      "label": "Default - More",
                      "subPathSegments": null,
                      "type": "EXECUTION_CONTEXT_PATH",
                      "value": "executionContext.dataBuckets.Default.More",
                      "valueSegments": [
                        {
                          "key": "executionContext",
                          "optional": false
                        },
                        {
                          "key": "dataBuckets",
                          "optional": false
                        },
                        {
                          "key": "Default",
                          "optional": false
                        },
                        {
                          "key": "More",
                          "optional": false
                        }
                      ]
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "STRING",
                "values": [
                  {
                    "expression": [
                      {
                        "id": "TEXT",
                        "label": null,
                        "type": "INPUT",
                        "value": "yes"
                      }
                    ],
                    "mode": "EXPRESSION",
                    "parseJsonString": false,
                    "resultType": null
                  }
                ]
              }
            ],
            "grouping": [
              "fd7eb529-c55b-4e3b-aaf5-57e248d09a6c"
            ]
          },
          "enabled": true,
          "firstElementId": "6173B887-9FCE-4563-9738-2A2726FF885D",
          "maxIterations": 500,
          "onFailElemId": null,
          "resultAlias": "r1",
          "storeResult": true
        },
        "name": "Page through the load folders",
        "nextElementIds": [
          "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      },
      {
        "clientMetadata": {
          "elementId": "list-iterator",
          "isFirstElement": false,
          "blockDefinitionId": "list-iterator",
          "viewport": {
            "x": -70,
            "y": 0,
            "zoom": 1
          },
          "position": {
            "x": 1147,
            "y": 390
          }
        },
        "flowElementId": "F0D86ADF-CF2F-4D05-8687-C59306EEDF54",
        "groupId": null,
        "id": "D9A290C1-0FAF-4954-A96F-41ACBE9AE7E9",
        "loopType": "LIST_ITERATOR",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "enabled": true,
          "firstElementId": "024AD18E-4E74-4C9C-8E1A-4EC55F9512BE",
          "list": {
            "expression": [
              {
                "id": "ELEMENT_RESULT",
                "label": "Incomplete",
                "subPathSegments": [
                  {
                    "key": "folders",
                    "optional": false
                  }
                ],
                "type": "ELEMENT_LINK",
                "value": "3DF69C20-2EB6-4AD8-B123-B208ADD4C4B3"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "onFailElemId": null,
          "resultAlias": "i1",
          "storeResult": true
        },
        "name": "For each folder missing paperwork",
        "nextElementIds": [
          "49F660CB-A26F-4143-8BA8-FDF988E013C5"
        ],
        "nextGroupIds": [],
        "type": "LOOP"
      }
    ],
    "id": "F9594DF3-8739-40BD-93DA-13943CBD4773",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "Dropbox folder that holds one folder per load, named by load number.",
          "error": null,
          "name": "Loads folder",
          "type": "STRING",
          "value": ""
        },
        {
          "description": "Only load folders with a file added or changed in this many days are audited.",
          "error": null,
          "name": "Days back",
          "type": "INT",
          "value": ""
        },
        {
          "description": "The McLeod Imaging document type ID for each kind of paperwork, so a document filed only in McLeod counts. Change the values to your own types.",
          "error": null,
          "name": "McLeod document types",
          "type": "OBJECT",
          "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-26T09:39:48.572Z"
}
