Ok some confusion, will explain again. I need to use below syntax in email. i am not able to pass context field as replaceAll expecting string. So original question how do i pass context field here {%= replaceAll(context.journey.events.923737463.Event.test.totalPrice, "([0-9]+\\.[0-9]{2}).*", "$1") ...