title: Saving initial payload using an expression exchange-property in groovy script in IFlow in CPI/HCI
body: <p>I am trying to save the first body in the payload in an exchange property and use it in the next block which is a groovy script. See my IFlow below:</p>
  
  <p><a href="https://i.stack.imgur.com/axQjE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/axQjE.png" alt="enter image description here"></a></p>
  
  <p>Later, I am accessing this property as below:</p>
  
  <pre><code>String firstBody=message.getProperties().get("firstBody")
  messageLog.addAttachmentAsString("Log", firstBody, "text/plain");
  </code></pre>
  
  <p>However, in the logs I get  <code>org.apache.camel.converter.stream.InputStreamCache@a0acbe1</code></p>
  
  <p>What am I missing here?</p>