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

- Component: `appmixer.zoho.crm.UpdateLead`
- Kind: Action
- Version: 2.0.0
- Visibility: Public
- Connector: [appmixer.zoho.crm 2.4.5](https://connectors.appmixer.com/connector/appmixer.zoho.crm/2.4.5.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.zoho.crm/2.4.5/component/appmixer.zoho.crm.UpdateLead>

This component updates existing lead.

## Input ports

### Port `lead`

| Field | Type | Description |
| --- | --- | --- |
| Lead Id (`leadId`) | text | Select lead. |
| Lead Owner (`leadOwner`) | select | Select the Zoho CRM user to whom the Lead is assigned. |
| Lead Source (`leadSource`) | select | Select the source from which the contact is created. |
| Company (`company`) | text | Specify the name of the company where the lead is working. |
| Salutation (`salutation`) | select | Select salutation. |
| First Name (`firstName`) | text | Specify the first name of the lead. |
| Last Name (`lastName`) | text | Specify the last name of the lead. This field is a mandatory. |
| Email (`email`) | text | Specify the email address of the lead. |
| Title (`title`) | text | Specify the job position of the lead |
| Phone (`phone`) | text | Specify the phone number of the lead. |
| Fax (`fax`) | text | Specify the fax number of the lead. |
| Mobile (`mobile`) | text | Specify the mobile number of the lead. |
| Website (`website`) | text | Specify the Web site of the lead. |
| Lead Status (`leadStatus`) | select | Select lead status. |
| Industry (`industry`) | select | Select lead industry. |
| No. of Employees (`noOfEmployees`) | number | Specify the number of the employees. |
| Rating (`rating`) | select | Select rating. |
| Annual Revenue (`annualRevenue`) | number | Specify the annual revenue of the company where the lead is working. |
| Skype ID (`skypeID`) | text | Specify the Skype ID of the lead. Currently skype ID can be in the range of 6 to 32 characters. |
| Street (`street`) | text | Specify the street address of the lead. |
| City (`city`) | text | Specify the name of the city where the lead lives. |
| State (`state`) | text | Specify the name of the state where the lead lives. |
| Zip Code (`zipCode`) | text | Specify the postal code of the lead's address. |
| Country (`country`) | text | Specify the name of the lead's country. |
| Description (`description`) | textarea | Specify any other details about the lead. |

## Output ports

### Port `updatedLead`

Variables are loaded dynamically from `/component/appmixer/zoho/crm/ListFields?outPort=fields`.

## Full metadata (component.json)

```json
{
  "name": "appmixer.zoho.crm.UpdateLead",
  "author": "Zulkafil Tabish <zulkafil@client.io>",
  "description": "This component updates existing lead.",
  "version": "2.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:zoho"
  },
  "quota": {
    "manager": "appmixer:zoho",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "lead",
      "schema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string"
          },
          "leadOwner": {
            "type": "string",
            "maxLength": 120
          },
          "leadSource": {
            "type": "string",
            "maxLength": 120
          },
          "company": {
            "type": "string",
            "maxLength": 100
          },
          "salutation": {
            "type": "string",
            "maxLength": 120
          },
          "firstName": {
            "type": "string",
            "maxLength": 40
          },
          "lastName": {
            "type": "string",
            "maxLength": 80
          },
          "email": {
            "type": "string",
            "maxLength": 100
          },
          "title": {
            "type": "string",
            "maxLength": 100
          },
          "phone": {
            "type": "string",
            "maxLength": 30
          },
          "fax": {
            "type": "string",
            "maxLength": 30
          },
          "mobile": {
            "type": "string",
            "maxLength": 30
          },
          "website": {
            "type": "string",
            "maxLength": 255
          },
          "leadStatus": {
            "type": "string",
            "maxLength": 120
          },
          "industry": {
            "type": "string",
            "maxLength": 120
          },
          "noOfEmployees": {
            "type": "number",
            "maxLength": 9
          },
          "rating": {
            "type": "string",
            "maxLength": 120
          },
          "annualRevenue": {
            "type": "number",
            "maxLength": 16
          },
          "skypeID": {
            "type": "string",
            "minLength": 6,
            "maxLength": 50
          },
          "street": {
            "type": "string",
            "maxLength": 250
          },
          "city": {
            "type": "string",
            "maxLength": 100
          },
          "state": {
            "type": "string",
            "maxLength": 100
          },
          "zipCode": {
            "type": "string",
            "maxLength": 30
          },
          "country": {
            "type": "string",
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 32000
          }
        },
        "required": [
          "leadId"
        ]
      },
      "inspector": {
        "inputs": {
          "leadId": {
            "type": "text",
            "label": "Lead Id",
            "index": 1,
            "source": {
              "url": "/component/appmixer/zoho/crm/ListRecords?outPort=out",
              "data": {
                "transform": "./transformers#personsToSelectArray",
                "messages": {
                  "in": {
                    "allAtOnce": true,
                    "moduleName": "Leads"
                  }
                }
              }
            },
            "tooltip": "Select lead."
          },
          "leadOwner": {
            "type": "select",
            "label": "Lead Owner",
            "index": 1,
            "tooltip": "Select the Zoho CRM user to whom the Lead is assigned.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListUsers?outPort=users",
              "data": {
                "transform": "./ListUsers#usersToSelectArray"
              }
            }
          },
          "leadSource": {
            "type": "select",
            "label": "Lead Source",
            "index": 2,
            "tooltip": "Select the source from which the contact is created.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
              "data": {
                "messages": {
                  "in": {
                    "moduleName": "Leads",
                    "filterApiName": "Lead_Source"
                  }
                },
                "transform": "./transformers#listPickValues"
              }
            }
          },
          "company": {
            "type": "text",
            "label": "Company",
            "index": 3,
            "tooltip": "Specify the name of the company where the lead is working."
          },
          "salutation": {
            "type": "select",
            "label": "Salutation",
            "index": 4,
            "tooltip": "Select salutation.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
              "data": {
                "messages": {
                  "in": {
                    "moduleName": "Leads",
                    "filterApiName": "Salutation"
                  }
                },
                "transform": "./transformers#listPickValues"
              }
            }
          },
          "firstName": {
            "type": "text",
            "label": "First Name",
            "index": 5,
            "tooltip": "Specify the first name of the lead."
          },
          "lastName": {
            "type": "text",
            "label": "Last Name",
            "index": 6,
            "tooltip": "Specify the last name of the lead. This field is a mandatory."
          },
          "email": {
            "type": "text",
            "label": "Email",
            "index": 7,
            "tooltip": "Specify the email address of the lead."
          },
          "title": {
            "type": "text",
            "label": "Title",
            "index": 8,
            "tooltip": "Specify the job position of the lead"
          },
          "phone": {
            "type": "text",
            "label": "Phone",
            "index": 9,
            "tooltip": "Specify the phone number of the lead."
          },
          "fax": {
            "type": "text",
            "label": "Fax",
            "index": 10,
            "tooltip": "Specify the fax number of the lead."
          },
          "mobile": {
            "type": "text",
            "label": "Mobile",
            "index": 11,
            "tooltip": "Specify the mobile number of the lead."
          },
          "website": {
            "type": "text",
            "label": "Website",
            "index": 12,
            "tooltip": "Specify the Web site of the lead."
          },
          "leadStatus": {
            "type": "select",
            "label": "Lead Status",
            "index": 13,
            "tooltip": "Select lead status.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
              "data": {
                "messages": {
                  "in": {
                    "moduleName": "Leads",
                    "filterApiName": "Lead_Status"
                  }
                },
                "transform": "./transformers#listPickValues"
              }
            }
          },
          "industry": {
            "type": "select",
            "label": "Industry",
            "index": 14,
            "tooltip": "Select lead industry.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
              "data": {
                "messages": {
                  "in": {
                    "moduleName": "Leads",
                    "filterApiName": "Industry"
                  }
                },
                "transform": "./transformers#listPickValues"
              }
            }
          },
          "noOfEmployees": {
            "type": "number",
            "label": "No. of Employees",
            "index": 15,
            "tooltip": "Specify the number of the employees."
          },
          "rating": {
            "type": "select",
            "label": "Rating",
            "index": 16,
            "tooltip": "Select rating.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
              "data": {
                "messages": {
                  "in": {
                    "moduleName": "Leads",
                    "filterApiName": "Rating"
                  }
                },
                "transform": "./transformers#listPickValues"
              }
            }
          },
          "annualRevenue": {
            "type": "number",
            "label": "Annual Revenue",
            "index": 17,
            "tooltip": "Specify the annual revenue of the company where the lead is working."
          },
          "skypeID": {
            "type": "text",
            "label": "Skype ID",
            "index": 18,
            "tooltip": "Specify the Skype ID of the lead. Currently skype ID can be in the range of 6 to 32 characters."
          },
          "street": {
            "type": "text",
            "label": "Street",
            "index": 19,
            "tooltip": "Specify the street address of the lead."
          },
          "city": {
            "type": "text",
            "label": "City",
            "index": 20,
            "tooltip": "Specify the name of the city where the lead lives."
          },
          "state": {
            "type": "text",
            "label": "State",
            "index": 21,
            "tooltip": "Specify the name of the state where the lead lives."
          },
          "zipCode": {
            "type": "text",
            "label": "Zip Code",
            "index": 22,
            "tooltip": "Specify the postal code of the lead's address."
          },
          "country": {
            "type": "text",
            "label": "Country",
            "index": 23,
            "tooltip": "Specify the name of the lead's country."
          },
          "description": {
            "type": "textarea",
            "label": "Description",
            "index": 24,
            "tooltip": "Specify any other details about the lead."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "updatedLead",
      "source": {
        "url": "/component/appmixer/zoho/crm/ListFields?outPort=fields",
        "data": {
          "messages": {
            "in": {
              "moduleName": "Leads"
            }
          },
          "transform": "./transformers#toSingleRecordSelectArray"
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
