Altova FlowForce Server 2026 

Returns the Message-ID header field of an AS2 message. This function is used in jobs configured to send and receive AS2 data.

 

If the job is not AS2-enabled, the function returns a newly generated Message-ID instead. A new value is generated for each job instance and remains constant throughout its execution.

 

Signature

current-message-id() -> string

 

Examples

Example 1

This expression generates a filename based on the current Message-ID, with the angle brackets removed.

 

C:\temp\{substring(current-message-id(), 1, -1)}.msg

 

Step-by-step analysis

current-message-id() returns the current Message-ID of the job instance (e.g., <1234567890abcdef@server.domain>).

substring(current-message-id(), 1, -1) removes the first and the last characters (the angle brackets) from the Message-ID.

The curly braces {...} indicate an expression embedded in a string field.

The evaluated expression is combined with C:\temp and .msg to produce: C:\temp\1234567890abcdef@server.domain.msg.

 

Example 2

This expression creates a filename using only the first part of the Message-ID (the random 32-character long hexadecimal value before @).

 

C:\temp\{nth(split(substring(current-message-id(), 1, -1), '@'), 0)}.msg

 

Step-by-step analysis

substring(current-message-id(), 1, -1) removes the angle brackets from the Message-ID (e.g., 1234567890abcdef@server.domain).

split(..., '@') splits the string at '@', producing a list: ["1234567890abcdef", "server.domain"].

nth(..., 0) extracts the first item of the list: 1234567890abcdef.

The curly braces {...} indicate an expression embedded in a string field.

The evaluated expression inserted into the string produces: C:\temp\1234567890abcdef.msg.

 

© 2020-2026 Altova GmbH