Copy Header Field
The Copy Header Field mapping retrieves a specific message header value defined in the header parameter of the mapping and places it at the configured to path in the message body. Common headers include id, product, endpoint, and topic.
Attributes for Copy Header Field
| Attribute | Required | Description |
|---|---|---|
| From | Yes | Defines the source field for the mapping. |
| To | Yes | Defines where the result should be inserted. |
| Precedence | Yes | Determines the order in which this mapping is applied relative to others. |
| Function type | Yes | Must be "Message Structure" |
| Function | Yes | Should be set to "Copy Header Field". |
| Header | Yes | Header field to retrieve. |
| Condition | No | (Optional) Message field to apply a condition on. If the condition is met, the mapping is applied. |
| Regex | No | (Optional) Regular expression to appl to the message field defined in the condition field. |