Enum to string
Description
Pure function returning the underlying string value of any enum. Accepts any enum source — built-in or user-defined — and emits the raw value. Useful for piping an enum field into log-message or any other string consumer.
When to use
Use Enum to string when a node produces an enum but a downstream node expects a string — for example, to log the HTTP method from a Receive HTTP trigger, to include an enum field in a concatenated message, or to compare an enum’s raw value as text. The node accepts any enum type without configuration and emits the underlying constant value.
Pins
Input pins
| Pin | Type | Default | Notes |
|---|---|---|---|
| Value | enum | — | The enum value to convert. Accepts any enum — a built-in enum such as HTTP method, or a user-defined enum field. |
Output pins
| Pin | Type | Notes |
|---|---|---|
| Result | string | The underlying string value of the enum (the raw constant, e.g. "POST"). |
Example
Log the HTTP method of an incoming request. Wire the method output of Receive HTTP
into the Value input of Enum to string, then wire the Result output into the Message
input of Log message. The method (for example POST) is written to the execution log as
plain text.