Skip to main content

FieldMapping

Maps a source field to a target field in the output spec

sourceFieldstringrequired

Name of the field in the input spec

Example: account_number
targetFieldstringrequired

Name of the field in the output spec

Example: accountNo
transformationstring

Optional SpEL expression to transform the value

Example: #value.substring(0, 9)
FieldMapping
{
"sourceField": "account_number",
"targetField": "accountNo",
"transformation": "#value.substring(0, 9)"
}