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

- Component: `appmixer.zoho.crm.CreateContact`
- 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.CreateContact>

This component creates a new contact.

## Input ports

### Port `contact`

| Field | Type | Description |
| --- | --- | --- |
| Contact Owner (`contactOwner`) | select | Select the Zoho CRM user to whom the account is assigned. |
| Lead Source (`leadSource`) | select | Select the source from which the contact is created. |
| Salutation (`salutation`) | select | Select salutation. |
| First Name (`firstName`) | text | Specify the first name of the contact. |
| Last Name (`lastName`) | text | Specify the last name of the contact. This field is mandatory. |
| Email (`email`) | text | Specify the primary email address of the contact. |
| Account Name (`accountName`) | select | Select the account related to the contact. |
| Department (`department`) | text | Specify the department of the contact. |
| Title (`title`) | text | Specify the job position of the contact. |
| Phone (`phone`) | text | Specify the office phone number of the contact. |
| Fax (`fax`) | text | Specify the Fax number of the contact. |
| Mobile (`mobile`) | text | Specify the mobile number of the contact. |
| Assistant (`assistant`) | text | Specify the name of the contact’s assistant. |
| Reports To (`reportsTo`) | text | The Contact ID to whom the contact reports. |
| Skype ID (`skypeID`) | text | Specify the Skype ID of the contact. Currently skype ID can be in the range of 6 to 32 characters. |
| Mailing Street (`mailingStreet`) | text | Specify the mailing street address of the contact. |
| Mailing City (`mailingCity`) | text | Specify the name of the mailing city. |
| Mailing State (`mailingState`) | text | Specify the name of the mailing state. |
| Mailing Zip Code (`mailingZip`) | text | Specify the mailing zip code. |
| Mailing Country (`mailingCountry`) | text | Specify the mailing country. |
| Description (`description`) | textarea | Specify any other details about contact. |

## Output ports

### Port `newContact`

| Field | Type | Description |
| --- | --- | --- |
| Contact ID (`id`) | - | - |
| Created Time (`created_time`) | - | - |
| Modified Time (`modified_time`) | - | - |
| Created By ID (`created_by`) | - | - |
| Created By Name (`created_by_name`) | - | - |
| Modified By ID (`modified_by`) | - | - |
| Created By Name (`modified_by_name`) | - | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.zoho.crm.CreateContact",
  "author": "Zulkafil Tabish <zulkafil@client.io>",
  "description": "This component creates a new contact.",
  "private": false,
  "version": "2.0.0",
  "auth": {
    "service": "appmixer:zoho"
  },
  "quota": {
    "manager": "appmixer:zoho",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "contact",
      "schema": {
        "type": "object",
        "properties": {
          "contactOwner": {
            "type": "string",
            "maxLength": 120
          },
          "leadSource": {
            "type": "string",
            "maxLength": 120
          },
          "salutation": {
            "type": "string",
            "maxLength": 120
          },
          "firstName": {
            "type": "string",
            "maxLength": 40
          },
          "lastName": {
            "type": "string",
            "maxLength": 80
          },
          "email": {
            "type": "string",
            "maxLength": 100
          },
          "accountName": {
            "type": "string",
            "maxLength": 120
          },
          "department": {
            "type": "string",
            "maxLength": 50
          },
          "title": {
            "type": "string",
            "maxLength": 100
          },
          "phone": {
            "type": "string",
            "maxLength": 50
          },
          "fax": {
            "type": "string",
            "maxLength": 30
          },
          "mobile": {
            "type": "string",
            "maxLength": 30
          },
          "assistant": {
            "type": "string",
            "maxLength": 50
          },
          "reportsTo": {
            "type": "string",
            "maxLength": 120
          },
          "skypeID": {
            "type": "string",
            "minLength": 6,
            "maxLength": 50
          },
          "mailingStreet": {
            "type": "string",
            "maxLength": 250
          },
          "mailingCity": {
            "type": "string",
            "maxLength": 100
          },
          "mailingState": {
            "type": "string",
            "maxLength": 100
          },
          "mailingZip": {
            "type": "string",
            "maxLength": 30
          },
          "mailingCountry": {
            "type": "string",
            "maxLength": 100
          },
          "description": {
            "type": "string",
            "maxLength": 32000
          }
        },
        "required": [
          "firstName",
          "lastName"
        ]
      },
      "inspector": {
        "inputs": {
          "contactOwner": {
            "type": "select",
            "label": "Contact Owner",
            "index": 1,
            "tooltip": "Select the Zoho CRM user to whom the account 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"
              }
            }
          },
          "salutation": {
            "type": "select",
            "label": "Salutation",
            "index": 3,
            "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": 4,
            "tooltip": "Specify the first name of the contact."
          },
          "lastName": {
            "type": "text",
            "label": "Last Name",
            "index": 5,
            "tooltip": "Specify the last name of the contact. This field is mandatory."
          },
          "email": {
            "type": "text",
            "label": "Email",
            "index": 6,
            "tooltip": "Specify the primary email address of the contact."
          },
          "accountName": {
            "type": "select",
            "label": "Account Name",
            "index": 7,
            "tooltip": "Select the account related to the contact.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListAccounts?outPort=out",
              "data": {
                "messages": {
                  "in": {
                    "allAtOnce": true
                  }
                },
                "transform": "./ListAccounts#toSelectArray"
              }
            }
          },
          "department": {
            "type": "text",
            "label": "Department",
            "index": 8,
            "tooltip": "Specify the department of the contact."
          },
          "title": {
            "type": "text",
            "label": "Title",
            "index": 9,
            "tooltip": "Specify the job position of the contact."
          },
          "phone": {
            "type": "text",
            "label": "Phone",
            "index": 10,
            "tooltip": "Specify the office phone number of the contact."
          },
          "fax": {
            "type": "text",
            "label": "Fax",
            "index": 11,
            "tooltip": "Specify the Fax number of the contact."
          },
          "mobile": {
            "type": "text",
            "label": "Mobile",
            "index": 12,
            "tooltip": "Specify the mobile number of the contact."
          },
          "assistant": {
            "type": "text",
            "label": "Assistant",
            "index": 13,
            "tooltip": "Specify the name of the contact’s assistant."
          },
          "reportsTo": {
            "type": "text",
            "label": "Reports To",
            "index": 14,
            "tooltip": "The Contact ID to whom the contact reports."
          },
          "skypeID": {
            "type": "text",
            "label": "Skype ID",
            "index": 15,
            "tooltip": "Specify the Skype ID of the contact. Currently skype ID can be in the range of 6 to 32 characters."
          },
          "mailingStreet": {
            "type": "text",
            "label": "Mailing Street",
            "index": 16,
            "tooltip": "Specify the mailing street address of the contact."
          },
          "mailingCity": {
            "type": "text",
            "label": "Mailing City",
            "index": 17,
            "tooltip": "Specify the name of the mailing city."
          },
          "mailingState": {
            "type": "text",
            "label": "Mailing State",
            "index": 18,
            "tooltip": "Specify the name of the mailing state."
          },
          "mailingZip": {
            "type": "text",
            "label": "Mailing Zip Code",
            "index": 19,
            "tooltip": "Specify the mailing zip code."
          },
          "mailingCountry": {
            "type": "text",
            "label": "Mailing Country",
            "index": 20,
            "tooltip": "Specify the mailing country."
          },
          "description": {
            "type": "textarea",
            "label": "Description",
            "index": 21,
            "tooltip": "Specify any other details about contact."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "newContact",
      "options": [
        {
          "label": "Contact ID",
          "value": "id"
        },
        {
          "label": "Created Time",
          "value": "created_time"
        },
        {
          "label": "Modified Time",
          "value": "modified_time"
        },
        {
          "label": "Created By ID",
          "value": "created_by"
        },
        {
          "label": "Created By Name",
          "value": "created_by_name"
        },
        {
          "label": "Modified By ID",
          "value": "modified_by"
        },
        {
          "label": "Created By Name",
          "value": "modified_by_name"
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
