Skip to content

source.getElementSeparator

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

Signature: source.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

// Given an X12 or EDIFACT source message.

// Retrieve the element separator used by the message.
var elementSeparator = source.getElementSeparator(); // expected: "*" for X12, "+" for EDIFACT