{
  "apiVersion": 62,
  "areMetricsLoggedToDataCloud": false,
  "description": "Set Lead Status change time, including create and update",
  "label": "Lead Status Duration",
  "processType": "AutoLaunchedFlow",
  "recordUpdates": [
    {
      "name": "Input_Date_Status_Changed",
      "label": "Input Date Status Changed",
      "locationX": 176,
      "locationY": 287,
      "inputAssignments": [
        {
          "field": "Date_Status_Changed__c",
          "value": {
            "elementReference": "$Flow.CurrentDateTime"
          }
        }
      ],
      "inputReference": "$Record"
    }
  ],
  "start": {
    "locationX": 50,
    "locationY": 0,
    "connector": {
      "targetReference": "Input_Date_Status_Changed"
    },
    "filterLogic": "and",
    "filters": [
      {
        "field": "Status",
        "operator": "IsChanged",
        "value": {
          "booleanValue": true
        }
      }
    ],
    "object": "Lead",
    "recordTriggerType": "CreateAndUpdate",
    "triggerType": "RecordBeforeSave"
  },
  "status": "Active"
}
