Skip to content

bmel:substring

Category: String · Returns: bmel:string

Signature
bmel:substring(expr: bmel:string, start: bmel:integer, end: bmel:integer)

Description

Extracts characters from a string between start index (inclusive) and end index (exclusive).

Arguments

Parameter Type Required Description
expr bmel:string The source string.
start bmel:integer Zero-based start index (inclusive).
end bmel:integer Zero-based end index (exclusive).

Examples

First three characters of a product code
bmel:substring({createOrder:Request Payload}.$.product_code, 0, 3)
Year from an ISO date string
bmel:substring({createOrder:Request Payload}.$.created_at, 0, 4)

← Back to BMEL Reference