Skip to main content

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

AttributeRequiredDescription
FromYesDefines the source field for the mapping.
ToYesDefines where the result should be inserted.
PrecedenceYesDetermines the order in which this mapping is applied relative to others.
Function typeYesMust be "Message Structure"
FunctionYesShould be set to "Copy Header Field".
HeaderYesHeader field to retrieve.
ConditionNo(Optional) Message field to apply a condition on. If the condition is met, the mapping is applied.
RegexNo(Optional) Regular expression to appl to the message field defined in the condition field.