> 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.UpdateLead

- Component: `appmixer.salesforce.crm.UpdateLead`
- Kind: Action
- 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.UpdateLead>

Update a lead in Salesforce.

## Input ports

### Port `lead`

| Field | Type | Description |
| --- | --- | --- |
| Lead (`leadId`) | select | Select lead to update. |
| Website (`website`) | text | Website for the lead. |
| Salutation (`salutation`) | select | Salutation for the lead. |
| First name (`firstName`) | text | First name of the lead. |
| Title (`title`) | text | Title for the lead, for example CFO or CEO. |
| Email (`email`) | text | Email address for the lead. |
| Industry (`industry`) | select | Industry the lead works in. |
| Phone (`phone`) | text | Phone number for the lead. |
| No. of employees (`numberOfEmployees`) | number | Number of employees at the lead’s company. |
| Mobile phone (`mobile`) | text | Mobile phone number for the lead. |
| Lead source (`leadSource`) | select | Source from which the lead was obtained. |
| Rating (`rating`) | select | Rating of the lead. |
| Street (`street`) | text | Street number and name for the address of the lead. |
| City (`city`) | text | City for the address of the lead. |
| State/province (`state`) | text | State for the address of the lead. |
| Zip/postal code (`postalCode`) | text | Postal code for the address of the lead. |
| Country (`country`) | text | Country for the address of the lead. |

## Output ports

### Port `updatedLead`

| Field | Type | Description |
| --- | --- | --- |
| Attributes (`attributes`) | object | - |
| `Id` | string | - |
| Is Deleted (`IsDeleted`) | boolean | - |
| Master Record Id (`MasterRecordId`) | string | - |
| Last Name (`LastName`) | string | - |
| Middle Name (`MiddleName`) | string | - |
| First Name (`FirstName`) | string | - |
| `Salutation` | string | - |
| `Name` | string | - |
| `Title` | string | - |
| `Company` | string | - |
| `Street` | string | - |
| `City` | string | - |
| `State` | string | - |
| Postal Code (`PostalCode`) | string | - |
| `Country` | string | - |
| `Latitude` | number | - |
| `Longitude` | number | - |
| Geocode Accuracy (`GeocodeAccuracy`) | string | - |
| `Address` | string | - |
| `Phone` | string | - |
| Mobile Phone (`MobilePhone`) | string | - |
| `Fax` | string | - |
| `Email` | string | - |
| `Website` | string | - |
| Photo Url (`PhotoUrl`) | string | - |
| `Description` | string | - |
| Lead Source (`LeadSource`) | string | - |
| `Status` | string | - |
| `Industry` | string | - |
| `Rating` | string | - |
| Annual Revenue (`AnnualRevenue`) | string | - |
| Number Of Employees (`NumberOfEmployees`) | number | - |
| Owner Id (`OwnerId`) | string | - |
| Is Converted (`IsConverted`) | boolean | - |
| Converted Date (`ConvertedDate`) | string | - |
| Converted Account Id (`ConvertedAccountId`) | string | - |
| Converted Contact Id (`ConvertedContactId`) | string | - |
| Converted Opportunity Id (`ConvertedOpportunityId`) | string | - |
| Is Unread By Owner (`IsUnreadByOwner`) | boolean | - |
| Created Date (`CreatedDate`) | string | - |
| Created By Id (`CreatedById`) | string | - |
| Last Modified Date (`LastModifiedDate`) | string | - |
| Last Modified By Id (`LastModifiedById`) | string | - |
| System Modstamp (`SystemModstamp`) | string | - |
| Last Activity Date (`LastActivityDate`) | string | - |
| Last Viewed Date (`LastViewedDate`) | string | - |
| Last Referenced Date (`LastReferencedDate`) | string | - |
| `Jigsaw` | string | - |
| Jigsaw Contact Id (`JigsawContactId`) | string | - |
| Clean Status (`CleanStatus`) | string | - |
| Company Duns Number (`CompanyDunsNumber`) | string | - |
| Dandb Company Id (`DandbCompanyId`) | string | - |
| Email Bounced Reason (`EmailBouncedReason`) | string | - |
| Email Bounced Date (`EmailBouncedDate`) | string | - |
| Individual Id (`IndividualId`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.salesforce.crm.UpdateLead",
  "author": "Tomasz Hencel <thencel@ntrc.eu>",
  "description": "Update a lead in Salesforce.",
  "private": false,
  "auth": {
    "service": "appmixer:salesforce"
  },
  "quota": {
    "manager": "appmixer:salesforce",
    "resources": "requests"
  },
  "version": "1.1.2",
  "dependencies": {
    "service": "1.1.2"
  },
  "inPorts": [
    {
      "name": "lead",
      "schema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string"
          },
          "website": {
            "type": "string",
            "maxLength": 255
          },
          "salutation": {
            "type": "string",
            "maxLength": 40
          },
          "firstName": {
            "type": "string",
            "maxLength": 40
          },
          "title": {
            "type": "string",
            "maxLength": 80
          },
          "email": {
            "type": "string",
            "maxLength": 80,
            "format": "email"
          },
          "industry": {
            "type": "string",
            "maxLength": 40
          },
          "phone": {
            "type": "string",
            "maxLength": 40,
            "pattern": "\\(?([0-9]{1,})\\)?([ .-]?)([0-9]{1,})\\2([0-9]{1,})$"
          },
          "numberOfEmployees": {
            "type": "integer",
            "maxLength": 40
          },
          "mobile": {
            "type": "string",
            "maxLength": 40,
            "pattern": "\\(?([0-9]{1,})\\)?([ .-]?)([0-9]{1,})\\2([0-9]{1,})$"
          },
          "leadSource": {
            "type": "string",
            "maxLength": 40
          },
          "rating": {
            "type": "string",
            "maxLength": 40
          },
          "street": {
            "type": "string",
            "maxLength": 255
          },
          "city": {
            "type": "string",
            "maxLength": 40
          },
          "state": {
            "type": "string",
            "maxLength": 80
          },
          "postalCode": {
            "type": "string",
            "maxLength": 80
          },
          "country": {
            "type": "string",
            "maxLength": 80
          }
        },
        "required": [
          "leadId"
        ]
      },
      "inspector": {
        "inputs": {
          "leadId": {
            "type": "select",
            "label": "Lead",
            "index": 1,
            "source": {
              "url": "/component/appmixer/salesforce/crm/ListLeads?outPort=leads",
              "data": {
                "transform": "./transformers#leadsToSelectArray"
              }
            },
            "tooltip": "Select lead to update."
          },
          "website": {
            "type": "text",
            "tooltip": "Website for the lead.",
            "label": "Website",
            "index": 2
          },
          "salutation": {
            "type": "select",
            "options": [
              {
                "value": "none",
                "content": "none"
              },
              {
                "value": "Mr.",
                "content": "Mr."
              },
              {
                "value": "Ms.",
                "content": "Ms."
              },
              {
                "value": "Mrs.",
                "content": "Mrs."
              },
              {
                "value": "Dr.",
                "content": "Dr."
              },
              {
                "value": "Prof.",
                "content": "Prof."
              }
            ],
            "defaultValue": "none",
            "tooltip": "Salutation for the lead.",
            "label": "Salutation",
            "index": 3
          },
          "firstName": {
            "type": "text",
            "tooltip": "First name of the lead.",
            "label": "First name",
            "index": 4
          },
          "title": {
            "type": "text",
            "tooltip": "Title for the lead, for example CFO or CEO.",
            "label": "Title",
            "index": 5
          },
          "email": {
            "type": "text",
            "tooltip": "Email address for the lead.",
            "label": "Email",
            "index": 6
          },
          "industry": {
            "type": "select",
            "options": [
              {
                "value": "none",
                "content": "none"
              },
              {
                "value": "Agriculture",
                "content": "Agriculture"
              },
              {
                "value": "Apparel",
                "content": "Apparel"
              },
              {
                "value": "Banking",
                "content": "Banking"
              },
              {
                "value": "Biotechnology",
                "content": "Biotechnology"
              },
              {
                "value": "Chemicals",
                "content": "Chemicals"
              },
              {
                "value": "Communications",
                "content": "Communications"
              },
              {
                "value": "Construction",
                "content": "Construction"
              },
              {
                "value": "Consulting",
                "content": "Consulting"
              },
              {
                "value": "Education",
                "content": "Education"
              },
              {
                "value": "Electronics",
                "content": "Electronics"
              },
              {
                "value": "Energy",
                "content": "Energy"
              },
              {
                "value": "Engineering",
                "content": "Engineering"
              },
              {
                "value": "Entertainment",
                "content": "Entertainment"
              },
              {
                "value": "Environmental",
                "content": "Environmental"
              },
              {
                "value": "Finance",
                "content": "Finance"
              },
              {
                "value": "Food & Beverage",
                "content": "Food & Beverage"
              },
              {
                "value": "Government",
                "content": "Government"
              },
              {
                "value": "Healthcare",
                "content": "Healthcare"
              },
              {
                "value": "Hospitality",
                "content": "Hospitality"
              },
              {
                "value": "Insurance",
                "content": "Insurance"
              },
              {
                "value": "Machinery",
                "content": "Machinery"
              },
              {
                "value": "Manufacturing",
                "content": "Manufacturing"
              },
              {
                "value": "Media",
                "content": "Media"
              },
              {
                "value": "Not For Profit",
                "content": "Not For Profit"
              },
              {
                "value": "Other",
                "content": "Other"
              },
              {
                "value": "Recreation",
                "content": "Recreation"
              },
              {
                "value": "Retail",
                "content": "Retail"
              },
              {
                "value": "Shipping",
                "content": "Shipping"
              },
              {
                "value": "Technology",
                "content": "Technology"
              },
              {
                "value": "Telecommunications",
                "content": "Telecommunications"
              },
              {
                "value": "Transportation",
                "content": "Transportation"
              },
              {
                "value": "Utilities",
                "content": "Utilities"
              }
            ],
            "defaultValue": "none",
            "tooltip": "Industry the lead works in.",
            "label": "Industry",
            "index": 7
          },
          "phone": {
            "type": "text",
            "tooltip": "Phone number for the lead.",
            "label": "Phone",
            "index": 8
          },
          "numberOfEmployees": {
            "type": "number",
            "tooltip": "Number of employees at the lead’s company.",
            "label": "No. of employees",
            "index": 9
          },
          "mobile": {
            "type": "text",
            "tooltip": "Mobile phone number for the lead.",
            "label": "Mobile phone",
            "index": 10
          },
          "leadSource": {
            "type": "select",
            "options": [
              {
                "value": "none",
                "content": "none"
              },
              {
                "value": "Advertisement",
                "content": "Advertisement"
              },
              {
                "value": "Customer Event",
                "content": "Customer Event"
              },
              {
                "value": "Employee Referral",
                "content": "Employee Referral"
              },
              {
                "value": "Google AdWords",
                "content": "Google AdWords"
              },
              {
                "value": "Other",
                "content": "Other"
              },
              {
                "value": "Partner",
                "content": "Partner"
              },
              {
                "value": "Purchased List",
                "content": "Purchased List"
              },
              {
                "value": "Trade Show",
                "content": "Trade Show"
              }
            ],
            "defaultValue": "none",
            "tooltip": "Source from which the lead was obtained.",
            "label": "Lead source",
            "index": 11
          },
          "rating": {
            "type": "select",
            "options": [
              {
                "value": "none",
                "content": "none"
              },
              {
                "value": "Hot",
                "content": "Hot"
              },
              {
                "value": "Warm",
                "content": "Warm"
              },
              {
                "value": "Cold",
                "content": "Cold"
              }
            ],
            "defaultValue": "none",
            "tooltip": "Rating of the lead.",
            "label": "Rating",
            "index": 12
          },
          "street": {
            "type": "text",
            "tooltip": "Street number and name for the address of the lead.",
            "label": "Street",
            "index": 13
          },
          "city": {
            "type": "text",
            "tooltip": "City for the address of the lead.",
            "label": "City",
            "index": 14
          },
          "state": {
            "type": "text",
            "tooltip": "State for the address of the lead.",
            "label": "State/province",
            "index": 15
          },
          "postalCode": {
            "type": "text",
            "tooltip": "Postal code for the address of the lead.",
            "label": "Zip/postal code",
            "index": 16
          },
          "country": {
            "type": "text",
            "tooltip": "Country for the address of the lead.",
            "label": "Country",
            "index": 17
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "updatedLead",
      "options": [
        {
          "label": "Attributes",
          "value": "attributes",
          "schema": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "title": "Attributes.Type"
              },
              "url": {
                "type": "string",
                "title": "Attributes.Url"
              }
            },
            "example": {
              "type": "Lead",
              "url": "/services/data/v59.0/sobjects/Lead/00Q5g00000ABC123"
            }
          }
        },
        {
          "label": "Id",
          "value": "Id",
          "schema": {
            "type": "string",
            "example": "00Q5g00000ABC123"
          }
        },
        {
          "label": "Is Deleted",
          "value": "IsDeleted",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Master Record Id",
          "value": "MasterRecordId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Last Name",
          "value": "LastName",
          "schema": {
            "type": "string",
            "example": "Chen"
          }
        },
        {
          "label": "Middle Name",
          "value": "MiddleName",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "First Name",
          "value": "FirstName",
          "schema": {
            "type": "string",
            "example": "Michael"
          }
        },
        {
          "label": "Salutation",
          "value": "Salutation",
          "schema": {
            "type": "string",
            "example": "Mr."
          }
        },
        {
          "label": "Name",
          "value": "Name",
          "schema": {
            "type": "string",
            "example": "Michael Chen"
          }
        },
        {
          "label": "Title",
          "value": "Title",
          "schema": {
            "type": "string",
            "example": "VP of Engineering"
          }
        },
        {
          "label": "Company",
          "value": "Company",
          "schema": {
            "type": "string",
            "example": "TechStart Inc."
          }
        },
        {
          "label": "Street",
          "value": "Street",
          "schema": {
            "type": "string",
            "example": "123 Innovation Ave"
          }
        },
        {
          "label": "City",
          "value": "City",
          "schema": {
            "type": "string",
            "example": "San Francisco"
          }
        },
        {
          "label": "State",
          "value": "State",
          "schema": {
            "type": "string",
            "example": "CA"
          }
        },
        {
          "label": "Postal Code",
          "value": "PostalCode",
          "schema": {
            "type": "string",
            "example": "94105"
          }
        },
        {
          "label": "Country",
          "value": "Country",
          "schema": {
            "type": "string",
            "example": "US"
          }
        },
        {
          "label": "Latitude",
          "value": "Latitude",
          "schema": {
            "type": "number",
            "example": 37.7749
          }
        },
        {
          "label": "Longitude",
          "value": "Longitude",
          "schema": {
            "type": "number",
            "example": -122.4194
          }
        },
        {
          "label": "Geocode Accuracy",
          "value": "GeocodeAccuracy",
          "schema": {
            "type": "string",
            "example": "Address"
          }
        },
        {
          "label": "Address",
          "value": "Address",
          "schema": {
            "type": "string",
            "example": "123 Innovation Ave, San Francisco, CA 94105"
          }
        },
        {
          "label": "Phone",
          "value": "Phone",
          "schema": {
            "type": "string",
            "example": "+1555234567"
          }
        },
        {
          "label": "Mobile Phone",
          "value": "MobilePhone",
          "schema": {
            "type": "string",
            "example": "+1555234568"
          }
        },
        {
          "label": "Fax",
          "value": "Fax",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Email",
          "value": "Email",
          "schema": {
            "type": "string",
            "example": "michael.chen@techstart.com"
          }
        },
        {
          "label": "Website",
          "value": "Website",
          "schema": {
            "type": "string",
            "example": "https://techstart.com"
          }
        },
        {
          "label": "Photo Url",
          "value": "PhotoUrl",
          "schema": {
            "type": "string",
            "example": "/services/images/photo/00Q5g00000ABC123"
          }
        },
        {
          "label": "Description",
          "value": "Description",
          "schema": {
            "type": "string",
            "example": "Upgraded to enterprise plan"
          }
        },
        {
          "label": "Lead Source",
          "value": "LeadSource",
          "schema": {
            "type": "string",
            "example": "Web"
          }
        },
        {
          "label": "Status",
          "value": "Status",
          "schema": {
            "type": "string",
            "example": "Working - Contacted"
          }
        },
        {
          "label": "Industry",
          "value": "Industry",
          "schema": {
            "type": "string",
            "example": "Technology"
          }
        },
        {
          "label": "Rating",
          "value": "Rating",
          "schema": {
            "type": "string",
            "example": "Hot"
          }
        },
        {
          "label": "Annual Revenue",
          "value": "AnnualRevenue",
          "schema": {
            "type": "string",
            "example": "5000000"
          }
        },
        {
          "label": "Number Of Employees",
          "value": "NumberOfEmployees",
          "schema": {
            "type": "number",
            "example": 55
          }
        },
        {
          "label": "Owner Id",
          "value": "OwnerId",
          "schema": {
            "type": "string",
            "example": "005Dn000002XYZ789"
          }
        },
        {
          "label": "Is Converted",
          "value": "IsConverted",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Converted Date",
          "value": "ConvertedDate",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Converted Account Id",
          "value": "ConvertedAccountId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Converted Contact Id",
          "value": "ConvertedContactId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Converted Opportunity Id",
          "value": "ConvertedOpportunityId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Is Unread By Owner",
          "value": "IsUnreadByOwner",
          "schema": {
            "type": "boolean",
            "example": false
          }
        },
        {
          "label": "Created Date",
          "value": "CreatedDate",
          "schema": {
            "type": "string",
            "example": "2026-01-15T10:30:00.000+0000"
          }
        },
        {
          "label": "Created By Id",
          "value": "CreatedById",
          "schema": {
            "type": "string",
            "example": "005Dn000002XYZ789"
          }
        },
        {
          "label": "Last Modified Date",
          "value": "LastModifiedDate",
          "schema": {
            "type": "string",
            "example": "2026-01-15T14:30:00.000+0000"
          }
        },
        {
          "label": "Last Modified By Id",
          "value": "LastModifiedById",
          "schema": {
            "type": "string",
            "example": "005Dn000002XYZ789"
          }
        },
        {
          "label": "System Modstamp",
          "value": "SystemModstamp",
          "schema": {
            "type": "string",
            "example": "2026-01-15T14:30:00.000+0000"
          }
        },
        {
          "label": "Last Activity Date",
          "value": "LastActivityDate",
          "schema": {
            "type": "string",
            "example": "2026-01-15"
          }
        },
        {
          "label": "Last Viewed Date",
          "value": "LastViewedDate",
          "schema": {
            "type": "string",
            "example": "2026-01-15T14:30:00.000+0000"
          }
        },
        {
          "label": "Last Referenced Date",
          "value": "LastReferencedDate",
          "schema": {
            "type": "string",
            "example": "2026-01-15T14:30:00.000+0000"
          }
        },
        {
          "label": "Jigsaw",
          "value": "Jigsaw",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Jigsaw Contact Id",
          "value": "JigsawContactId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Clean Status",
          "value": "CleanStatus",
          "schema": {
            "type": "string",
            "example": "Pending"
          }
        },
        {
          "label": "Company Duns Number",
          "value": "CompanyDunsNumber",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Dandb Company Id",
          "value": "DandbCompanyId",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Email Bounced Reason",
          "value": "EmailBouncedReason",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Email Bounced Date",
          "value": "EmailBouncedDate",
          "schema": {
            "type": "string",
            "example": ""
          }
        },
        {
          "label": "Individual Id",
          "value": "IndividualId",
          "schema": {
            "type": "string",
            "example": ""
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
