How to concatenate two strings in Mule?

Step 1:

Add the transform Message Component in the mule flow from component palette.

Step 2

 In this component we can write the Dataweave script to concatenate two strings as shown below. We can click on Preview button to see the resultant of Dataweave operation.

Note: ++ is the concatenate operator to concatenate two strings.

Dataweave Expression:



varfirstName= “Sumit”

varlastName= “Aggarwal”


Output:  “SumitAggarwal”

Reference Link:

Leave a Reply

Your email address will not be published. Required fields are marked *