title: Passing ids in IBM MQ client
body: <p>I read the messages from one queue to another queue. However my correlation ids are not preserved.</p>
  
  <p>If the correlation id is "ABC12345" for a message in the import queue, when i put it into the export queue, the value of the correlation id is different.</p>
  
  <blockquote>
    <p>How do i keep the same correlation id between the 2 queues and always
    have a unique message id?</p>
  </blockquote>
  
  <p>Get: </p>
  
  <pre><code>mqQueue.Get(mqMsg);
  string messageID = Convert.ToString(mqMsg.MessageId);
  string correlationID = Convert.ToString(mqMsg.CorrelationId);
  </code></pre>
  
  <p>If for example if the correlation  id is "000123456789", then after read, while putting it back , the value gets changed for the same message.</p>
  
  <p>Put:</p>
  
  <pre><code> mqMsg.CorrelationId = System.Text.Encoding.UTF8.GetBytes(correlationID);
   mqQueue.Put(mqMsg, mqPutMsgOpts);
  </code></pre>
  
  <p>I am using MQ PUT and GET options via MQ.NET classes.         </p>