> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.salesforce.crm.LeadStatusChange

- Component: `appmixer.salesforce.crm.LeadStatusChange`
- Kind: Trigger
- Version: 1.1.2
- Visibility: Public
- Connector: [appmixer.salesforce 1.7.7](https://connectors.appmixer.com/connector/appmixer.salesforce/1.7.7.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.salesforce/1.7.7/component/appmixer.salesforce.crm.LeadStatusChange>

Triggers with the lead details when the Status (or another chosen field) changes on a Lead.

## Properties

| Field | Type | Description |
| --- | --- | --- |
| Status Field (`fieldName`) | text | The field to monitor for changes. Defaults to the standard Lead Status field. |

## Output ports

### Port `lead`

Variables are loaded dynamically from `/component/appmixer/salesforce/crm/GetObjectFields?outPort=out`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.salesforce.crm.LeadStatusChange",
  "author": "Appmixer <info@appmixer.ai>",
  "description": "Triggers with the lead details when the Status (or another chosen field) changes on a Lead.",
  "private": false,
  "auth": {
    "service": "appmixer:salesforce"
  },
  "quota": {
    "manager": "appmixer:salesforce",
    "resources": "requests"
  },
  "version": "1.1.2",
  "dependencies": {
    "service": "1.1.2"
  },
  "tick": true,
  "trigger": true,
  "properties": {
    "schema": {
      "type": "object",
      "properties": {
        "fieldName": {
          "type": "string"
        }
      },
      "required": [
        "fieldName"
      ]
    },
    "inspector": {
      "inputs": {
        "fieldName": {
          "type": "text",
          "label": "Status Field",
          "index": 1,
          "defaultValue": "Status",
          "tooltip": "The field to monitor for changes. Defaults to the standard Lead Status field.",
          "source": {
            "url": "/component/appmixer/salesforce/crm/GetObjectFields?outPort=out",
            "data": {
              "messages": {
                "in": {
                  "objectName": "Lead"
                }
              },
              "transform": "./transformers#fieldsToSelectOptions",
              "properties": {
                "variableFetch": true
              }
            }
          }
        }
      }
    }
  },
  "outPorts": [
    {
      "name": "lead",
      "source": {
        "url": "/component/appmixer/salesforce/crm/GetObjectFields?outPort=out",
        "data": {
          "messages": {
            "in": {
              "objectName": "Lead"
            }
          },
          "transform": "./transformers#fieldsToSelectOptions",
          "properties": {
            "variableFetch": true
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
