Design Updated Example

Event Label: Design Updated

Event Name: design.updated

Trigger: When a Design is updated

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

"payload": {
  "targetOrg": "6c6d5dc5-629e-4057-bd60-481b9e0ccb6e",
  "initiatedBy": "977238e3-f2a7-4842-96b2-4ee612c7f28b",
  "current": {
    "id": "acdde0ed-98c4-4cbe-ae77-7e2bec83cd2f",
    "deal": "e32d468b-14a7-4b31-94ca-a1823e6cecc9",
    "source": {
      "id": "f2265c00-1240-46db-8f4b-3aff3717adbb",
      "tool": "DESIGN_REQUEST"
    },
    "title": "Max Fit",
    "firstYearProduction": 5678,
    "firstYearProductionByMonth": [
      362,
      367,
      378,
      448,
      520,
      520,
      601,
      618,
      593,
      529,
      448,
      295
    ],
    "consumption": {
      "lat": 37.7089139,
      "lng": -122.4291906,
      "actualBuildingArea": null,
      "meanBuildingArea": 0,
      "buildingArea": 0,
      "actualConsumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "estimatedConsumption": [
        7,
        6,
        8,
        1,
        5,
        7,
        1,
        8,
        2,
        1,
        9,
        6
      ],
      "consumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "annualConsumption": 14868,
      "averageMonthlyConsumption": 1239,
      "actualBills": [
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null
      ],
      "estimatedBills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "bills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "annualBill": 63,
      "averageMonthlyBill": 5.25,
      "actualRate": null,
      "estimatedRate": 0.15,
      "utilityId": "f13befd6-ae0c-41db-adb6-fb072b6bd1eb",
      "tariff": {
        "lseId": 100773,
        "tariffId": 3414555,
        "tariffName": "Residential",
        "effectiveDate": "2022-07-01",
        "masterTariffId": 3270298
      },
      "utilityBills": null
    },
    "utility": {
      "id": "f13befd6-ae0c-41db-adb6-fb072b6bd1eb",
      "name": "CleanPowerSF",
      "genabilityId": 100773
    },
    "offset": 0.3818940005380683,
    "totalSystemSizeWatts": 8265,
    "existingSystemSizeWatts": 4034,
    "inverters": [
      {
        "id": "40b1faf8-1faa-4b1f-af1f-92246e8309ff",
        "name": "Enphase: IQ7-60-2-US",
        "model": "IQ7-60-2-US",
        "isMicro": true,
        "acOutput": 240,
        "thumbnail": null,
        "efficiency": 0.976,
        "manufacturer": "Enphase"
      }
    ],
    "inverterCount": 19,
    "arrays": [
      {
        "name": "Array 1",
        "tsrf": null,
        "pitch": null,
        "module": {
          "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"
        },
        "azimuth": null,
        "production": 5678,
        "moduleCount": 19,
        "solarAccess": null,
        "inverterIndex": 0,
        "roofPlaneIndex": null,
        "solarAccessByMonth": null
      }
    ],
    "batteries": [
      {
        "count": 1,
        "battery": {
          "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
        }
      }
    ],
    "battery": {
      "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": 1,
    "roofMaterial": "ASPHALT_SHINGLES",
    "mountingType": "ROOF",
    "attachments": [],
    "layoutImage": null,
    "notes": null,
    "errors": []
  },
  "previous": {
    "id": "acdde0ed-98c4-4cbe-ae77-7e2bec83cd2f",
    "deal": "e32d468b-14a7-4b31-94ca-a1823e6cecc9",
    "source": {
      "id": "f2265c00-1240-46db-8f4b-3aff3717adbb",
      "tool": "DESIGN_REQUEST"
    },
    "title": "Max Fit",
    "firstYearProduction": 5678,
    "firstYearProductionByMonth": [
      362,
      367,
      378,
      448,
      520,
      520,
      601,
      618,
      593,
      529,
      448,
      295
    ],
    "consumption": {
      "lat": 0,
      "lng": 0,
      "actualBuildingArea": null,
      "meanBuildingArea": 0,
      "buildingArea": 0,
      "actualConsumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "estimatedConsumption": [
        7,
        6,
        8,
        1,
        5,
        7,
        1,
        8,
        2,
        1,
        9,
        6
      ],
      "consumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "annualConsumption": 14868,
      "averageMonthlyConsumption": 1239,
      "actualBills": [
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null
      ],
      "estimatedBills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "bills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "annualBill": 63,
      "averageMonthlyBill": 5.25,
      "actualRate": null,
      "estimatedRate": 0.15,
      "utilityId": "f13befd6-ae0c-41db-adb6-fb072b6bd1eb",
      "tariff": {
        "lseId": 100773,
        "tariffId": 3414555,
        "tariffName": "Residential",
        "effectiveDate": "2022-07-01",
        "masterTariffId": 3270298
      },
      "utilityBills": null
    },
    "utility": {
      "id": "f13befd6-ae0c-41db-adb6-fb072b6bd1eb",
      "name": "CleanPowerSF",
      "genabilityId": 100773
    },
    "offset": 0.3818940005380683,
    "existingSystemSizeWatts": 4034,
    "totalSystemSizeWatts": 9135,
    "inverters": [
      {
        "id": "40b1faf8-1faa-4b1f-af1f-92246e8309ff",
        "name": "Enphase: IQ7-60-2-US",
        "model": "IQ7-60-2-US",
        "isMicro": true,
        "acOutput": 240,
        "thumbnail": null,
        "efficiency": 0.976,
        "manufacturer": "Enphase"
      }
    ],
    "inverterCount": 21,
    "arrays": [
      {
        "name": "Array 1",
        "tsrf": null,
        "pitch": null,
        "module": {
          "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"
        },
        "azimuth": null,
        "production": 5678,
        "moduleCount": 21,
        "solarAccess": null,
        "inverterIndex": 0,
        "roofPlaneIndex": null,
        "solarAccessByMonth": null
      }
    ],
    "batteries": [
      {
        "count": 1,
        "battery": {
          "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
        }
      }
    ],
    "battery": {
      "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": 1,
    "roofMaterial": "ASPHALT_SHINGLES",
    "mountingType": "ROOF",
    "attachments": [],
    "layoutImage": null,
    "notes": null,
    "errors": []
  },
  "changes": {
    "consumption": {
      "lat": 37.7089139,
      "lng": -122.4291906,
      "actualBuildingArea": null,
      "meanBuildingArea": 0,
      "buildingArea": 0,
      "actualConsumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "estimatedConsumption": [
        7,
        6,
        8,
        1,
        5,
        7,
        1,
        8,
        2,
        1,
        9,
        6
      ],
      "consumption": [
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239,
        1239
      ],
      "annualConsumption": 14868,
      "averageMonthlyConsumption": 1239,
      "actualBills": [
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null,
        null
      ],
      "estimatedBills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "bills": [
        5,
        1,
        7,
        5,
        7,
        9,
        4,
        3,
        8,
        5,
        2,
        7
      ],
      "annualBill": 63,
      "averageMonthlyBill": 5.25,
      "actualRate": null,
      "estimatedRate": 0.15,
      "utilityId": "f13befd6-ae0c-41db-adb6-fb072b6bd1eb",
      "tariff": {
        "lseId": 100773,
        "tariffId": 3414555,
        "tariffName": "Residential",
        "effectiveDate": "2022-07-01",
        "masterTariffId": 3270298
      },
      "utilityBills": null
    },
    "totalSystemSizeWatts": 8265,
    "inverterCount": 19,
    "arrays": [
      {
        "name": "Array 1",
        "tsrf": null,
        "pitch": null,
        "module": {
          "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"
        },
        "azimuth": null,
        "production": 5678,
        "moduleCount": 19,
        "solarAccess": null,
        "inverterIndex": 0,
        "roofPlaneIndex": null,
        "solarAccessByMonth": null
      }
    ]
  }
}