> 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.hubspot.crm.EnrollContactInWorkflow

- Component: `appmixer.hubspot.crm.EnrollContactInWorkflow`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.hubspot 4.10.0](https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.hubspot/4.10.0/component/appmixer.hubspot.crm.EnrollContactInWorkflow>

Enroll a contact in a HubSpot workflow by email. Requires a HubSpot subscription with workflows (Professional/Enterprise or a developer test account) — on free portals the workflows API rejects the call with 403 regardless of granted OAuth scopes.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Workflow (`workflowId`) | text | The HubSpot workflow to enroll the contact in. |
| Contact Email (`email`) | text | Email address of the contact to enroll. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Workflow Id (`workflowId`) | string | - |
| Email (`email`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.hubspot.crm.EnrollContactInWorkflow",
  "author": "Appmixer <info@appmixer.com>",
  "description": "Enroll a contact in a HubSpot workflow by email. Requires a HubSpot subscription with workflows (Professional/Enterprise or a developer test account) — on free portals the workflows API rejects the call with 403 regardless of granted OAuth scopes.",
  "version": "1.0.0",
  "private": false,
  "auth": {
    "service": "appmixer:hubspot"
  },
  "quota": {
    "manager": "appmixer:hubspot",
    "resources": "requests"
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "workflowId": {
            "type": "string"
          },
          "email": {
            "type": "string",
            "format": "email"
          }
        },
        "required": [
          "workflowId",
          "email"
        ]
      },
      "inspector": {
        "inputs": {
          "workflowId": {
            "type": "text",
            "tooltip": "The HubSpot workflow to enroll the contact in.",
            "label": "Workflow",
            "source": {
              "url": "/component/appmixer/hubspot/crm/ListWorkflows?outPort=out",
              "data": {
                "transform": "./ListWorkflows#workflowsToSelectArray"
              }
            },
            "index": 0
          },
          "email": {
            "type": "text",
            "tooltip": "Email address of the contact to enroll.",
            "label": "Contact Email",
            "index": 1
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "options": [
        {
          "label": "Workflow Id",
          "value": "workflowId",
          "schema": {
            "type": "string",
            "example": "12345678"
          }
        },
        {
          "label": "Email",
          "value": "email",
          "schema": {
            "type": "string",
            "example": "jane.doe@example.com"
          }
        }
      ]
    }
  ],
  "icon": "(data URI omitted)"
}
```
