Gary Sharpe
Gary Sharpe

Reputation: 2431

How do I concatenate a string with a value returned from a mule expression?

I am trying something like the following to concatenate a string and a value returned from a mule expression

 <message-properties-transformer scope="session" doc:name="Set value as SessionVar">
        <add-message-property key="someKeyName" value="'Key ' + #[message.inboundProperties['http.query.params']['value']]"/>
  </message-properties-transformer> 

I've tried other variations, as well, without luck. I'll happily post variations, if needed.

Upvotes: 0

Views: 3137

Answers (1)

Ryan Carter
Ryan Carter

Reputation: 11606

Try and use: #['Key ' + message.inboundProperties['http.query.params']['value']]

Upvotes: 4

Related Questions