Skip to content

message.getComponentSeparator

Use when: You want to read values from the modified message during mapping. If you need the original incoming message, use source.getComponentSeparator.

Signature: message.getComponentSeparator()

Returns: String separator - the component separator associated with the message

Get the component separator used for this message.

Note

This method only applies to the following formatted messages: EDIFACT, X12.

Parameters

None

Example

// Example: Get the component separator used by an EDI message.

// Retrieve the component separator
var componentSeparator = message.getComponentSeparator(); // e.g. ":" for X12