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

# Set Custom Field

- Component: `appmixer.manychat.core.SetCustomField`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.manychat 1.0.0](https://connectors.appmixer.com/connector/appmixer.manychat/1.0.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.manychat/1.0.0/component/appmixer.manychat.core.SetCustomField>

Set the value of a custom user field for a Manychat subscriber. The value is converted to the field type: a number, true/false, a date (YYYY-MM-DD) or a date and time (ISO 8601).

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Subscriber ID (`subscriberId`) | text | The Manychat subscriber (contact) ID. Get it from Find Subscribers or a Manychat External Request. |
| Custom Field (`fieldId`) | text | Pick a custom user field, or enter its numeric Custom Field ID. |
| Value (`fieldValue`) | text | Text, a number (`123`), `true`/`false`, a date (`2026-07-18`) or a date and time with a timezone (`2026-07-02T10:00:00+00:00`), matching the field type. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Subscriber ID (`subscriberId`) | string | - |
| Custom Field ID (`fieldId`) | string | - |
| Value (`fieldValue`) | string | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.manychat.core.SetCustomField",
  "label": "Set Custom Field",
  "description": "Set the value of a custom user field for a Manychat subscriber. The value is converted to the field type: a number, true/false, a date (YYYY-MM-DD) or a date and time (ISO 8601).",
  "author": "Appmixer <info@appmixer.com>",
  "version": "1.0.0",
  "auth": {
    "service": "appmixer:manychat"
  },
  "quota": {
    "manager": "appmixer:manychat",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "subscriberId": {
            "type": "string"
          },
          "fieldId": {
            "type": "string"
          },
          "fieldValue": {
            "type": "string"
          }
        },
        "required": [
          "subscriberId",
          "fieldId",
          "fieldValue"
        ]
      },
      "inspector": {
        "inputs": {
          "subscriberId": {
            "type": "text",
            "index": 1,
            "label": "Subscriber ID",
            "tooltip": "The Manychat subscriber (contact) ID. Get it from Find Subscribers or a Manychat External Request."
          },
          "fieldId": {
            "type": "text",
            "index": 2,
            "label": "Custom Field",
            "source": {
              "url": "/component/appmixer/manychat/core/ListCustomFields?outPort=out",
              "data": {
                "messages": {
                  "in/outputType": "array"
                },
                "properties": {
                  "isSource": true
                },
                "transform": "./ListCustomFields#toSelectArray"
              }
            },
            "tooltip": "Pick a custom user field, or enter its numeric Custom Field ID."
          },
          "fieldValue": {
            "type": "text",
            "index": 3,
            "label": "Value",
            "tooltip": "Text, a number (<code>123</code>), <code>true</code>/<code>false</code>, a date (<code>2026-07-18</code>) or a date and time with a timezone (<code>2026-07-02T10:00:00+00:00</code>), matching the field type."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "subscriberId": {
            "type": "string",
            "title": "Subscriber ID",
            "example": "1234567890"
          },
          "fieldId": {
            "type": "string",
            "title": "Custom Field ID",
            "example": "11234"
          },
          "fieldValue": {
            "type": "string",
            "title": "Value",
            "example": "blue"
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
