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

# Create Contact Attachment

- Component: `appmixer.zoho.crm.CreateContactAttachment`
- Kind: Action
- Version: 1.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.CreateContactAttachment>

Attaches a file to a Zoho CRM contact - either an uploaded file or a link to a file.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Contact (`contactId`) | text | The contact to attach the file to. |
| File (`fileId`) | filepicker | The file to attach. Zoho accepts files up to 20 MB. Takes precedence over Attachment URL. |
| Attachment URL (`attachmentUrl`) | text | A publicly reachable link to attach instead of a file. Required when no File is given. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Attachment ID (`id`) | string | - |
| Contact ID (`contactId`) | string | - |
| Created Time (`Created_Time`) | string | - |
| Modified Time (`Modified_Time`) | string | - |
| Created By (`Created_By`) | object | - |
| Modified By (`Modified_By`) | object | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.zoho.crm.CreateContactAttachment",
  "label": "Create Contact Attachment",
  "description": "Attaches a file to a Zoho CRM contact - either an uploaded file or a link to a file.",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:zoho"
  },
  "quota": {
    "manager": "appmixer:zoho",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "contactId": {
            "type": "string"
          },
          "fileId": {
            "type": "string"
          },
          "attachmentUrl": {
            "type": "string"
          }
        },
        "required": [
          "contactId"
        ]
      },
      "inspector": {
        "inputs": {
          "contactId": {
            "type": "text",
            "label": "Contact",
            "index": 1,
            "tooltip": "The contact to attach the file to.",
            "source": {
              "url": "/component/appmixer/zoho/crm/ListRecords?outPort=out",
              "data": {
                "transform": "./transformers#personsToSelectArray",
                "messages": {
                  "in": {
                    "allAtOnce": true,
                    "moduleName": "Contacts"
                  }
                }
              }
            }
          },
          "fileId": {
            "type": "filepicker",
            "label": "File",
            "index": 2,
            "tooltip": "The file to attach. Zoho accepts files up to 20 MB. Takes precedence over Attachment URL."
          },
          "attachmentUrl": {
            "type": "text",
            "label": "Attachment URL",
            "index": 3,
            "tooltip": "A publicly reachable link to attach instead of a file. Required when no File is given."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "title": "Attachment ID",
            "example": "4876876000000912001"
          },
          "contactId": {
            "type": "string",
            "title": "Contact ID",
            "example": "4876876000000412001"
          },
          "Created_Time": {
            "type": "string",
            "title": "Created Time",
            "example": "2026-09-21T10:15:00+00:00"
          },
          "Modified_Time": {
            "type": "string",
            "title": "Modified Time",
            "example": "2026-09-21T10:15:00+00:00"
          },
          "Created_By": {
            "type": "object",
            "title": "Created By",
            "properties": {
              "id": {
                "type": "string",
                "title": "Created By.ID",
                "example": "4876876000000306001"
              },
              "name": {
                "type": "string",
                "title": "Created By.Name",
                "example": "John Smith"
              }
            }
          },
          "Modified_By": {
            "type": "object",
            "title": "Modified By",
            "properties": {
              "id": {
                "type": "string",
                "title": "Modified By.ID",
                "example": "4876876000000306001"
              },
              "name": {
                "type": "string",
                "title": "Modified By.Name",
                "example": "John Smith"
              }
            }
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
