Skip to content

message.getElementSeparator

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

Signature: message.getElementSeparator()

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

Get the element separator used for this message.

Note

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

Parameters

None

Example

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

// Retrieve the element separator
var elementSeparator = message.getElementSeparator(); // e.g. "*" for X12