Design Request Updated Example

Event Label: Design Request Updated

Event Name: design-request.updated

Trigger: When a Design Request is updated

Target Org: The Sales Org that created the Deal that the Design Request belongs to

{
  "payload": {
    "targetOrg": "88888888-0e5f-4996-8f74-28c75ddb48b9",
    "initiatedBy": "296af00b-3c04-45bd-82a4-a2ece88171eb",
    "current": {
      "id": "f6c23adc-2622-4240-b9ac-1ad263d14e34",
      "deal": "59886cce-2504-4da8-b63a-25b088e97b46",
      "queue": "19932466-27b9-4225-8c27-9817bc31e548",
      "assignedTo": null,
      "title": "123 Easy St Design 1",
      "status": "NEW",
      "dueDate": "2023-12-22T00:38:37.000Z",
      "requestedAt": "2023-12-14T00:38:55.000Z",
      "options": {
        "targetOffset": 1,
        "maxOffset": null,
        "maxFitSetting": "INCLUDE_ALL_ROOFS",
        "maxFitOther": null
      },
      "roofMaterial": "UNKNOWN",
      "mountingType": "GROUND",
      "consumption": {
        "lat": 37.39343849999999,
        "lng": -122.0675966,
        "actualBuildingArea": null,
        "meanBuildingArea": 1667,
        "buildingArea": 1667,
        "actualConsumption": [
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null
        ],
        "estimatedConsumption": [
          573.22380478,
          517.75053335,
          572.45334267,
          554.7327143,
          573.22380478,
          554.7327143,
          573.22380478,
          573.22380478,
          554.7327143,
          573.22380478,
          555.5031764,
          573.22380478
        ],
        "consumption": [
          573.22380478,
          517.75053335,
          572.45334267,
          554.7327143,
          573.22380478,
          554.7327143,
          573.22380478,
          573.22380478,
          554.7327143,
          573.22380478,
          555.5031764,
          573.22380478
        ],
        "annualConsumption": 6749.248024,
        "averageMonthlyConsumption": 562.4373353333334,
        "actualBills": [
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null
        ],
        "estimatedBills": [
          226.17524284,
          204.28731611,
          225.83067409,
          218.87926726,
          226.17524284,
          212.24101386,
          219.31571432,
          219.31571432,
          212.24101386,
          226.17524284,
          219.22382908,
          226.17524284
        ],
        "bills": [
          226.17524284,
          204.28731611,
          225.83067409,
          218.87926726,
          226.17524284,
          212.24101386,
          219.31571432,
          219.31571432,
          212.24101386,
          226.17524284,
          219.22382908,
          226.17524284
        ],
        "annualBill": 2636.04,
        "averageMonthlyBill": 219.67,
        "actualRate": null,
        "estimatedRate": 0.39456708,
        "utilityId": "c99c69de-0008-4fa2-a1bb-a4717a1c4fa4",
        "tariff": {
          "lseId": 734,
          "tariffId": 3452648,
          "tariffName": "Residential",
          "effectiveDate": "2023-10-01",
          "masterTariffId": 522
        },
        "utilityBills": null
      },
      "utility": {
        "id": "c99c69de-0008-4fa2-a1bb-a4717a1c4fa4",
        "name": "Pacific Gas & Electric",
        "genabilityId": 734
      },
      "availableModules": [
        {
          "id": "5a18e2d3-9432-4416-bd10-41cb163723f6",
          "name": "LG: LG435N2T-E6",
          "model": "LG435N2T-E6",
          "width": 1042,
          "length": 2130,
          "capacity": 435,
          "thumbnail": null,
          "efficiency": 0.196,
          "degradation": 0.0054,
          "manufacturer": "LG"
        }
      ],
      "availableInverters": [
        {
          "id": "8301232e-2ab1-4075-bcd1-37fc62787b58",
          "name": "Enphase: EnphaseIQ 7 Micro",
          "model": "EnphaseIQ 7 Micro",
          "isMicro": true,
          "acOutput": 2983,
          "thumbnail": null,
          "efficiency": 0.99,
          "manufacturer": "Enphase"
        }
      ],
      "availableBatteries": [
        {
          "id": "6a34ced8-79ce-4b3c-8e70-3783ec1d2bc1",
          "name": "Generac: Generac PWRcell 15",
          "depth": 1727,
          "model": "Generac PWRcell 15",
          "width": 254,
          "energy": 7.6,
          "length": 559,
          "weight": 390,
          "capacity": 15,
          "thumbnail": null,
          "efficiency": 0.965,
          "degradation": 0.07,
          "manufacturer": "Generac",
          "gridIntegration": "DC",
          "peakOutputPower": 9,
          "productWarranty": 10,
          "depthOfDischarge": 0.84,
          "inverterEfficiency": 0.965,
          "roundTripEfficiency": 0.965,
          "continuousOutputPower": 7.6,
          "endOfWarrantyCapacity": 0.7,
          "performanceWarrantyYears": null,
          "performanceWarrantyCycles": null
        }
      ],
      "batteryCount": 0,
      "attachments": [],
      "layoutImage": null,
      "notes": "",
      "revisionOf": null,
      "priority": 0
    },
    "previous": {
      "id": "f6c23adc-2622-4240-b9ac-1ad263d14e34",
      "deal": "59886cce-2504-4da8-b63a-25b088e97b46",
      "queue": "19932466-27b9-4225-8c27-9817bc31e548",
      "assignedTo": null,
      "title": "123 Easy St Design 1",
      "status": "NEW",
      "dueDate": "2023-12-22T00:38:37.000Z",
      "requestedAt": "2023-12-14T00:38:55.000Z",
      "options": {
        "targetOffset": 1,
        "maxOffset": null,
        "maxFitSetting": "INCLUDE_ALL_ROOFS",
        "maxFitOther": null
      },
      "roofMaterial": "ASPHALT_SHINGLES",
      "mountingType": "ROOF",
      "consumption": {
        "lat": 37.39343849999999,
        "lng": -122.0675966,
        "actualBuildingArea": null,
        "meanBuildingArea": 1667,
        "buildingArea": 1667,
        "actualConsumption": [
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null
        ],
        "estimatedConsumption": [
          573.22380478,
          517.75053335,
          572.45334267,
          554.7327143,
          573.22380478,
          554.7327143,
          573.22380478,
          573.22380478,
          554.7327143,
          573.22380478,
          555.5031764,
          573.22380478
        ],
        "consumption": [
          573.22380478,
          517.75053335,
          572.45334267,
          554.7327143,
          573.22380478,
          554.7327143,
          573.22380478,
          573.22380478,
          554.7327143,
          573.22380478,
          555.5031764,
          573.22380478
        ],
        "annualConsumption": 6749.248024,
        "averageMonthlyConsumption": 562.4373353333334,
        "actualBills": [
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null,
          null
        ],
        "estimatedBills": [
          226.17524284,
          204.28731611,
          225.83067409,
          218.87926726,
          226.17524284,
          212.24101386,
          219.31571432,
          219.31571432,
          212.24101386,
          226.17524284,
          219.22382908,
          226.17524284
        ],
        "bills": [
          226.17524284,
          204.28731611,
          225.83067409,
          218.87926726,
          226.17524284,
          212.24101386,
          219.31571432,
          219.31571432,
          212.24101386,
          226.17524284,
          219.22382908,
          226.17524284
        ],
        "annualBill": 2636.04,
        "averageMonthlyBill": 219.67,
        "actualRate": null,
        "estimatedRate": 0.39456708,
        "utilityId": "c99c69de-0008-4fa2-a1bb-a4717a1c4fa4",
        "tariff": {
          "lseId": 734,
          "tariffId": 3452648,
          "tariffName": "Residential",
          "effectiveDate": "2023-10-01",
          "masterTariffId": 522
        },
        "utilityBills": null
      },
      "utility": null,
      "availableModules": [
➤ YN0000:         {
          "id": "5a18e2d3-9432-4416-bd10-41cb163723f6",
          "name": "LG: LG435N2T-E6",
          "model": "LG435N2T-E6",
          "width": 1042,
          "length": 2130,
          "capacity": 435,
          "efficiency": 0.196,
          "degradation": 0.0054,
          "manufacturer": "LG"
        }
      ],
      "availableInverters": [
        {
          "id": "8301232e-2ab1-4075-bcd1-37fc62787b58",
          "name": "Enphase: EnphaseIQ 7 Micro",
          "model": "EnphaseIQ 7 Micro",
          "isMicro": true,
          "acOutput": 2983,
          "efficiency": 0.99,
          "manufacturer": "Enphase"
        }
      ],
      "availableBatteries": [
        {
          "id": "6a34ced8-79ce-4b3c-8e70-3783ec1d2bc1",
          "name": "Generac: Generac PWRcell 15",
          "depth": 1727,
          "model": "Generac PWRcell 15",
          "width": 254,
          "energy": 7.6,
          "length": 559,
          "weight": 390,
          "capacity": 15,
          "efficiency": 0.965,
          "degradation": 0.07,
          "manufacturer": "Generac",
          "gridIntegration": "DC",
          "peakOutputPower": 9,
          "productWarranty": 10,
          "depthOfDischarge": 0.84,
          "inverterEfficiency": 0.965,
          "roundTripEfficiency": 0.965,
          "continuousOutputPower": 7.6,
          "endOfWarrantyCapacity": 0.7,
          "performanceWarrantyYears": null,
          "performanceWarrantyCycles": null
        }
      ],
      "batteryCount": 0,
      "attachments": [],
      "layoutImage": null,
      "notes": "",
      "revisionOf": null,
      "priority": 0
    },
    "changes": {
      "roofMaterial": "UNKNOWN",
      "mountingType": "GROUND",
      "utility": {
        "id": "c99c69de-0008-4fa2-a1bb-a4717a1c4fa4",
        "name": "Pacific Gas & Electric",
        "genabilityId": 734
      },
      "availableModules": [
        {
          "id": "5a18e2d3-9432-4416-bd10-41cb163723f6",
          "name": "LG: LG435N2T-E6",
          "model": "LG435N2T-E6",
          "width": 1042,
          "length": 2130,
          "capacity": 435,
          "thumbnail": null,
          "efficiency": 0.196,
          "degradation": 0.0054,
          "manufacturer": "LG"
        }
      ],
      "availableInverters": [
        {
          "id": "8301232e-2ab1-4075-bcd1-37fc62787b58",
          "name": "Enphase: EnphaseIQ 7 Micro",
          "model": "EnphaseIQ 7 Micro",
          "isMicro": true,
          "acOutput": 2983,
          "thumbnail": null,
          "efficiency": 0.99,
          "manufacturer": "Enphase"
        }
      ],
      "availableBatteries": [
        {
          "id": "6a34ced8-79ce-4b3c-8e70-3783ec1d2bc1",
          "name": "Generac: Generac PWRcell 15",
          "depth": 1727,
          "model": "Generac PWRcell 15",
          "width": 254,
          "energy": 7.6,
          "length": 559,
          "weight": 390,
          "capacity": 15,
          "thumbnail": null,
          "efficiency": 0.965,
          "degradation": 0.07,
          "manufacturer": "Generac",
          "gridIntegration": "DC",
          "peakOutputPower": 9,
          "productWarranty": 10,
          "depthOfDischarge": 0.84,
          "inverterEfficiency": 0.965,
          "roundTripEfficiency": 0.965,
          "continuousOutputPower": 7.6,
          "endOfWarrantyCapacity": 0.7,
          "performanceWarrantyYears": null,
          "performanceWarrantyCycles": null
        }
      ]
    }
  },
  "event": "design-request.updated"
}