> ## Documentation Index
> Fetch the complete documentation index at: https://docs.m3ter.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Hubspot Functions

## Call HubSpot webhook

**Function name:** `CallHubspotWebhookFunction`
**Category:** Write
**Destination:** Hubspot

Calls a HubSpot webhook

### Parameters

| Name         | Label       | Required | Description                                                               |
| ------------ | ----------- | :------: | ------------------------------------------------------------------------- |
| `webhookUrl` | Webhook URL |    Yes   | Webhook URL to call                                                       |
| `objectData` | Object Data |    Yes   | The name of the variable containing object data to be sent to the webhook |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Create HubSpot object

**Function name:** `CreateHubspotObjectFunction`
**Category:** Write
**Destination:** Hubspot

Creates a HubSpot object

### Parameters

| Name                        | Label                | Required | Description                                                                 |
| --------------------------- | -------------------- | :------: | --------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials          |    Yes   | HubSpot credentials to use.                                                 |
| `objectName`                | Object Name          |    Yes   | Name of the HubSpot object                                                  |
| `objectData`                | Object Data          |    Yes   | The name of the variable containing object data to be created to in HubSpot |
| `outputObjectStateVariable` | Output resource name |    No    | Name of the variable by which the object will be stored in state            |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Delete HubSpot object

**Function name:** `DeleteHubspotObjectFunction`
**Category:** Write
**Destination:** Hubspot

Deletes a HubSpot object

### Parameters

| Name                       | Label       | Required | Description                                                                     |
| -------------------------- | ----------- | :------: | ------------------------------------------------------------------------------- |
| `integrationCredentialsId` | Credentials |    Yes   | HubSpot credentials to use.                                                     |
| `objectName`               | Object Name |    Yes   | Name of the HubSpot object                                                      |
| `objectId`                 | Object ID   |    Yes   | Name of the variable containing the ID of the object to be deleted from HubSpot |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Read HubSpot object

**Function name:** `ReadHubspotObjectFunction`
**Category:** Read
**Destination:** Hubspot

Reads a HubSpot object

### Parameters

| Name                        | Label         | Required | Description                                                                                       |
| --------------------------- | ------------- | :------: | ------------------------------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials   |    Yes   | HubSpot credentials to use.                                                                       |
| `objectName`                | Object Name   |    Yes   | Name of the HubSpot object                                                                        |
| `objectId`                  | Object ID     |    Yes   | Name of the variable containing the ID of the object to be retrieved from HubSpot                 |
| `properties`                | Properties    |    No    | Comma separated list of properties to retrieve. If not set, default properties will be retrieved. |
| `outputObjectStateVariable` | Output object |    No    | Name of the variable by which the object will be stored in state                                  |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Search HubSpot objects

**Function name:** `SearchHubspotObjectsFunction`
**Category:** Read
**Destination:** Hubspot

Function for searching for HubSpot objects. Can be used to find objects by specific criteria. Also can be used to list all objects of a specific type.

### Parameters

| Name                         | Label               | Required | Description                                                                                       |
| ---------------------------- | ------------------- | :------: | ------------------------------------------------------------------------------------------------- |
| `integrationCredentialsId`   | Credentials         |    Yes   | HubSpot credentials to use.                                                                       |
| `objectName`                 | Object Name         |    Yes   | Name of the HubSpot object                                                                        |
| `query`                      | Query               |    No    | The name of the variable containing the query to be executed                                      |
| `properties`                 | Properties          |    No    | Comma separated list of properties to retrieve. If not set, default properties will be retrieved. |
| `sorts`                      | Sorts               |    No    | Sort objects to sort the search results.                                                          |
| `filterGroups`               | Filter Groups       |    No    | Filter group objects to filter the search results.                                                |
| `outputResultsStateVariable` | Output results name |    Yes   | Name of the variable by which the objects iterator will be stored in state                        |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |

## Update HubSpot object

**Function name:** `UpdateHubspotObjectFunction`
**Category:** Write
**Destination:** Hubspot

Updates a HubSpot object

### Parameters

| Name                        | Label         | Required | Description                                                                       |
| --------------------------- | ------------- | :------: | --------------------------------------------------------------------------------- |
| `integrationCredentialsId`  | Credentials   |    Yes   | HubSpot credentials to use.                                                       |
| `objectName`                | Object Name   |    Yes   | Name of the HubSpot object                                                        |
| `objectId`                  | Object ID     |    Yes   | Name of the variable containing the ID of the object to be retrieved from HubSpot |
| `updateData`                | Update data   |    Yes   | The name of the variable containing data to be sent to HubSpot for update         |
| `outputObjectStateVariable` | Output object |    No    | Name of the variable by which the updated object will be stored in state          |

### Exits

| Exit    | Description |
| ------- | ----------- |
| `NEXT`  | -           |
| `ERROR` | -           |
