{
  "elementsLearnedData": [],
  "elementsTestData": [],
  "flow": {
    "id": "29915B29-E047-45A9-A32E-C221392E8E46",
    "name": "DocuSign: signed rate con filed on the load"
  },
  "flowVersion": {
    "clientMetadata": {
      "viewport": {
        "x": -70,
        "y": 0,
        "zoom": 1
      },
      "autoSave": false,
      "descriptions": {
        "flow": "When a rate con is signed in DocuSign, reads the load number from the envelope's Load Number field or its subject, finds the load in McLeod, downloads the signed copy and files it on the load, then tells dispatch in Slack. A signed rate con with no McLeod load goes to dispatch to file by hand.",
        "initialData": "",
        "initialDataFields": {}
      }
    },
    "description": "When a rate con is signed in DocuSign, downloads the signed copy, finds the load in McLeod by the envelope's load number and files the rate con on the load.",
    "elements": [
      {
        "clientMetadata": {
          "notes": "Adds a document (rate confirmation, BOL, POD, invoice) to a load in McLeod Imaging, from a file URL such as a FlowRunner stored file or an email attachment. PDF, TIFF, PNG, JPEG, GIF and BMP are accepted. Some imaging setups stage uploads for a batch job, so the document may appear in McLeod later.",
          "elementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::uploadDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "File it on the McLeod load Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::mcleod-loadmaster:::uploadDocument",
          "legacyElementId": null,
          "methodName": "uploadDocument",
          "position": {
            "x": 465,
            "y": 210
          }
        },
        "flowElementId": "14C6F90F-D237-423F-BFD7-B035ADE3FBAC",
        "groupId": null,
        "id": "A4332AF2-CB66-4390-B214-84496FA841BC",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "orderId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod load",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "62769306-3992-4F4A-ACE0-CEEC684D6A14"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "attachTo",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "O"
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "movementId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentTypeId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "PLACEHOLDER_DATA",
                    "label": "Rate con document type",
                    "subPathSegments": null,
                    "type": "EXECUTION_CONTEXT_STATIC_DATA",
                    "value": "Rate con document type"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileUrl",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Signed rate con",
                    "subPathSegments": [
                      {
                        "key": "url",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "5B9D88EA-9BD8-4B60-99A4-48897353E21A"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileType",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "application/pdf"
                  }
                ],
                "mode": "BASIC",
                "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": "uploadDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed rate con",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "File it on the McLeod load",
        "nextElementIds": [
          "F14CE28A-BEFF-42DF-B10D-6D7832319CC3"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 811,
            "y": 49
          }
        },
        "flowElementId": "120EEE34-5BBE-4852-9CEA-02EE529A5E93",
        "groupId": null,
        "id": "6601995D-F923-451A-9A7C-30BED8824D43",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "8c2d85eb-162a-42f5-b561-116dbc894259",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "Rate con",
                      "subPathSegments": [
                        {
                          "key": "isRateCon",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "8c2d85eb-162a-42f5-b561-116dbc894259"
            ]
          },
          "elseComponent": null,
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Rate con check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "62769306-3992-4F4A-ACE0-CEEC684D6A14",
            "componentType": "ELEMENT"
          }
        },
        "name": "Signed rate con for a load?",
        "nextElementIds": [
          "62769306-3992-4F4A-ACE0-CEEC684D6A14"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      },
      {
        "clientMetadata": {
          "notes": "Downloads a document from a DocuSign envelope and saves it to FlowRunner file storage, returning the stored file's URL. Use document ID 'combined' to get all documents merged into a single PDF, 'certificate' for the certificate of completion, or 'archive' for a ZIP of every document.",
          "elementId": "EXTENSION:::SHARED:::default:::docusign:::downloadDocument",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Download the signed rate con Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::docusign:::downloadDocument",
          "legacyElementId": "JS###v1###DocuSignService###downloadDocument",
          "methodName": "downloadDocument",
          "position": {
            "x": 800,
            "y": 210
          }
        },
        "flowElementId": "25C593D7-30C4-4FBA-9257-67030A528131",
        "groupId": null,
        "id": "5B9D88EA-9BD8-4B60-99A4-48897353E21A",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "envelopeId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "envelopeId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "documentId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "combined"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "fileName",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "fileName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "clientValidationState": {
            "errorMessage": "Block: 'Download the signed rate con', 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": "downloadDocument",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Signed rate con",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "docusign",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Download the signed rate con",
        "nextElementIds": [
          "A4332AF2-CB66-4390-B214-84496FA841BC"
        ],
        "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": "Tell dispatch it's signed Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 126,
            "y": 210
          }
        },
        "flowElementId": "0C05B169-AB7A-451F-BAFF-9808B681EB59",
        "groupId": null,
        "id": "F14CE28A-BEFF-42DF-B10D-6D7832319CC3",
        "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": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "signerName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " signed the rate con for load "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "McLeod load",
                    "subPathSegments": [
                      {
                        "key": "load",
                        "optional": false
                      },
                      {
                        "key": "orderId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "62769306-3992-4F4A-ACE0-CEEC684D6A14"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "signedAt",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "). The signed copy is filed on the load in McLeod."
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Filed note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell dispatch it's signed",
        "nextElementIds": [],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "custom-cloud-code",
          "isFirstElement": false,
          "blockDefinitionId": "custom-cloud-code",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Read the load number Result"
          },
          "position": {
            "x": 477,
            "y": 49
          }
        },
        "flowElementId": "E7461366-0A50-4F79-9D03-2086DDEDED1B",
        "groupId": null,
        "id": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "codeArguments": [
            {
              "name": "subject",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Signed envelope",
                    "subPathSegments": [
                      {
                        "key": "emailSubject",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "91A2DE4A-A296-4F31-B434-77AF31F8C760"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "customFields",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Signed envelope",
                    "subPathSegments": [
                      {
                        "key": "customFields",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "91A2DE4A-A296-4F31-B434-77AF31F8C760"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "recipients",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Signed envelope",
                    "subPathSegments": [
                      {
                        "key": "recipients",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "91A2DE4A-A296-4F31-B434-77AF31F8C760"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "envelopeId",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Signed envelope",
                    "subPathSegments": [
                      {
                        "key": "envelopeId",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "91A2DE4A-A296-4F31-B434-77AF31F8C760"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "completedAt",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "RESULT",
                    "label": "Signed envelope",
                    "subPathSegments": [
                      {
                        "key": "completedDateTime",
                        "optional": false
                      }
                    ],
                    "type": "TRIGGER_DATA",
                    "value": "91A2DE4A-A296-4F31-B434-77AF31F8C760"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            }
          ],
          "codeBody": {
            "expression": [
              {
                "id": "TEXT",
                "label": null,
                "type": "INPUT",
                "value": "const fields = (customFields && Array.isArray(customFields.textCustomFields)) ? customFields.textCustomFields : [];\nconst field = fields.find((f) => f && /load/i.test(String(f.name || '')) && String(f.value || '').trim());\nconst s = String(subject || '');\nconst m = s.match(/(?:load|order)\\s*(?:#|no\\.?|number)?\\s*:?\\s*([A-Z0-9][A-Z0-9-]{2,})/i);\nconst loadNumber = field ? String(field.value).trim() : (m ? m[1] : '');\nconst isRateCon = !!loadNumber && (!!field || /rate\\s*con(firmation)?/i.test(s));\nconst list = Array.isArray(recipients) ? recipients : [];\nconst signer = list.find((r) => r && r.signedDateTime) || list[0] || {};\nconst signedAt = signer.signedDateTime || completedAt || '';\nreturn {\n  isRateCon,\n  loadNumber,\n  envelopeId: String(envelopeId || ''),\n  signerName: signer.name || 'The carrier',\n  signerEmail: signer.email || '',\n  signedAt: signedAt ? String(signedAt).slice(0, 16).replace('T', ' ') + ' UTC' : 'just now',\n  fileName: ('rate-con-' + loadNumber + '-signed.pdf').replace(/[^A-Za-z0-9._-]/g, '-'),\n};"
              }
            ],
            "mode": "EXPRESSION",
            "parseJsonString": false,
            "resultType": null
          },
          "enabled": true,
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "onFailElemId": null,
          "resultAlias": "Rate con",
          "retryPolicy": null,
          "saveToVariable": null,
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "type": "CUSTOM_CLOUD_CODE"
        },
        "name": "Read the load number",
        "nextElementIds": [
          "6601995D-F923-451A-9A7C-30BED8824D43"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "notes": "Triggered when all recipients have signed and the envelope status changes to completed. Use this to automate post-signing workflows such as archiving signed documents or updating records.",
          "elementId": "EXTENSION:::SHARED:::default:::docusign:::onEnvelopeCompleted",
          "isFirstElement": true,
          "blockDefinitionId": "api-service-trigger",
          "newElementId": "EXTENSION:::SHARED:::default:::docusign:::onEnvelopeCompleted",
          "legacyElementId": "JS###v1###DocuSignService###onEnvelopeCompleted",
          "methodName": "onEnvelopeCompleted",
          "position": {
            "x": 110,
            "y": 40
          }
        },
        "flowElementId": "B6261ACB-F010-4F44-95EC-2F5A588A4C82",
        "groupId": null,
        "id": "91A2DE4A-A296-4F31-B434-77AF31F8C760",
        "metaInfo": {
          "callbackUrl": null,
          "clientValidationState": {
            "errorMessage": "Block: 'Rate con signed in DocuSign', Error: OAuth Connection is required",
            "valid": false
          },
          "condition": null,
          "connectionId": null,
          "eventName": "onEnvelopeCompleted",
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": null
          },
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "Signed envelope",
          "scope": "SINGLE_APP",
          "serviceId": "docusign",
          "slaConditions": [],
          "staticData": {},
          "storeResult": true,
          "subtype": "REALTIME",
          "type": "CUSTOM"
        },
        "name": "Rate con signed in DocuSign",
        "nextElementIds": [
          "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "TRIGGER"
      },
      {
        "clientMetadata": {
          "notes": "Sends messages to Slack channels with optional Block Kit rich layouts. Supports plain text with Slack formatting, or advanced Block Kit JSON for buttons, menus, and interactive elements. Returns the message timestamp and channel ID for later updates or tracking.",
          "elementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "isFirstElement": false,
          "blockDefinitionId": "api-service-method",
          "setResultToVariable": false,
          "saveToVariable": {
            "dataBucket": "Default",
            "variable": "Tell dispatch there's no load Result"
          },
          "newElementId": "EXTENSION:::SHARED:::default:::slack:::sendMessageToChannel",
          "legacyElementId": "JS###v1###Slack###sendMessageToChannel",
          "methodName": "sendMessageToChannel",
          "position": {
            "x": 805,
            "y": 340
          }
        },
        "flowElementId": "81FF8A84-1A1B-48D2-878E-0C94D5BBAB34",
        "groupId": null,
        "id": "E7F2B566-24FC-4EDB-95DC-41332A12DF1E",
        "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": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "signerName",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " signed the rate con for load "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "loadNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": " ("
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "signedAt",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  },
                  {
                    "id": "TEXT",
                    "label": null,
                    "type": "INPUT",
                    "value": "), but McLeod has no load with that number. Find the load and file the signed copy by hand. DocuSign envelope: "
                  },
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "envelopeId",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  }
                ],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "threadId",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "sendAsBot",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botName",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "botIcon",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "replyBroadcast",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "imageURL",
              "type": "SIMPLE",
              "value": {
                "expression": [],
                "mode": "EXPRESSION",
                "parseJsonString": false,
                "resultType": null
              }
            },
            {
              "name": "blocks",
              "type": "COMPLEX_LIST",
              "value": []
            }
          ],
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "connectionId": null,
          "enabled": true,
          "hostType": "SHARED",
          "logging": {
            "input": {
              "logData": false,
              "message": null
            },
            "output": {
              "logData": false,
              "message": null
            }
          },
          "methodName": "sendMessageToChannel",
          "onFailElemId": null,
          "packageId": "default",
          "resultAlias": "No load note",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "slack",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Tell dispatch there's no load",
        "nextElementIds": [],
        "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": false,
          "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": 1164,
            "y": 40
          }
        },
        "flowElementId": "49B3D475-5924-4410-8F1B-433EFDBA1646",
        "groupId": null,
        "id": "62769306-3992-4F4A-ACE0-CEEC684D6A14",
        "metaInfo": {
          "bodyParams": [
            {
              "name": "loadNumber",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "ELEMENT_RESULT",
                    "label": "Rate con",
                    "subPathSegments": [
                      {
                        "key": "loadNumber",
                        "optional": false
                      }
                    ],
                    "type": "ELEMENT_LINK",
                    "value": "AAD87370-E6AF-4C88-BD7D-C7AA8BF3A15E"
                  }
                ],
                "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
              }
            },
            {
              "name": "includeCustomerContacts",
              "type": "SIMPLE",
              "value": {
                "expression": [
                  {
                    "id": "K_FALSE",
                    "label": null,
                    "type": "KEYWORD",
                    "value": false
                  }
                ],
                "mode": "BASIC",
                "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 load",
          "retryPolicy": null,
          "saveToVariable": null,
          "serviceId": "mcleod-loadmaster",
          "simulationResult": null,
          "slaConditions": [],
          "storeResult": true,
          "subtype": "API_SERVICE",
          "type": "EXTENSION"
        },
        "name": "Find the load in McLeod",
        "nextElementIds": [
          "6BA3A2D4-75BF-45CE-A151-D43BA10037BF"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "learningStatus": "OFF"
        },
        "type": "ACTION"
      },
      {
        "clientMetadata": {
          "elementId": "condition",
          "isFirstElement": false,
          "blockDefinitionId": "condition",
          "position": {
            "x": 1176,
            "y": 219
          }
        },
        "flowElementId": "2F707C90-D88D-4CBF-BD90-4F30FB17A3B3",
        "groupId": null,
        "id": "6BA3A2D4-75BF-45CE-A151-D43BA10037BF",
        "metaInfo": {
          "clientValidationState": {
            "errorMessage": null,
            "valid": true
          },
          "condition": {
            "conditionParts": [
              {
                "id": "04c48a34-23ed-4e18-8cbb-f8ac2a92e08c",
                "nestedOperation": null,
                "operation": "isTrue",
                "property": {
                  "expression": [
                    {
                      "id": "ELEMENT_RESULT",
                      "label": "McLeod load",
                      "subPathSegments": [
                        {
                          "key": "found",
                          "optional": false
                        }
                      ],
                      "type": "ELEMENT_LINK",
                      "value": "62769306-3992-4F4A-ACE0-CEEC684D6A14"
                    }
                  ],
                  "mode": "EXPRESSION",
                  "parseJsonString": false,
                  "resultType": null
                },
                "propertyType": "BOOLEAN",
                "values": []
              }
            ],
            "grouping": [
              "04c48a34-23ed-4e18-8cbb-f8ac2a92e08c"
            ]
          },
          "elseComponent": {
            "componentId": "E7F2B566-24FC-4EDB-95DC-41332A12DF1E",
            "componentType": "ELEMENT"
          },
          "logging": null,
          "onFailElemId": null,
          "resultAlias": "Load check",
          "storeResult": false,
          "thenComponent": {
            "componentId": "5B9D88EA-9BD8-4B60-99A4-48897353E21A",
            "componentType": "ELEMENT"
          }
        },
        "name": "Load in McLeod?",
        "nextElementIds": [
          "5B9D88EA-9BD8-4B60-99A4-48897353E21A",
          "E7F2B566-24FC-4EDB-95DC-41332A12DF1E"
        ],
        "nextGroupIds": [],
        "serverFields": {
          "preferredDateFormats": []
        },
        "type": "CONDITION"
      }
    ],
    "firstElementId": "91A2DE4A-A296-4F31-B434-77AF31F8C760",
    "groups": [],
    "id": "E94AF15E-A66B-4F1D-8140-381BF12EB84E",
    "metaInfo": {
      "clientValidationState": {
        "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
        "valid": false
      },
      "errorMessage": "Please fix problems before start. Blocks with issues have red badge in the top-right corner of a block, hover it to see what needs to be done.",
      "executionStaticData": [
        {
          "description": "The McLeod Imaging document type code your team files signed rate cons under.",
          "error": null,
          "name": "Rate con document type",
          "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-29T02:53:36.358Z"
}
