title: Create message with attachment from selected message using Exchange attachment ID
body: <p>When you iterate through <code>Office.context.mailbox.item.attachments</code>, each <a href="https://dev.office.com/reference/add-ins/outlook/1.5/simple-types?product=outlook&amp;version=v1.5" rel="nofollow noreferrer"><code>AttachmentDetails</code></a> object has <code>id</code> as Exchange attachment ID.</p>
  
  <p>I assumed Exchange attachment ID to be the same as <code>EWS</code> Id.</p>
  
  <p>I am trying to add an attachment from the current message to a new reply form, which I open with the <code>displayReplyAllForm</code> method. I am using the attachment <code>id</code> from the original message.</p>
  
  <p>I get the following error:</p>
  
  <blockquote>
    <p>There was an error attaching one or more of the attachments. You can close this response and try again in the app.</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/6UrYm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6UrYm.png" alt="enter image description here"></a></p>
  
  <p>The following is the code I am using:</p>
  
  <pre class="lang-js prettyprint-override"><code>if (item.attachments.length &gt; 0) {
      var attach = item.attachments[1];
      attachments.push({
          'type': 'item',
          'name': attach.name,
          'itemId': attach.id
      });
      closeOutlookCLIDoc(true);
      Office.context.mailbox.item.displayReplyAllForm({
          'htmlBody': '',
          'attachments': attachments
      });
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/H3K52.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H3K52.png" alt="enter image description here"></a></p>
  
  <p>Please confirm the <code>AttachmentDetails.id</code> from <code>attachments</code> object of the message, which is according to documentation: <em>Exchange attachment ID of the attachment</em>, is <strong>the same</strong> as <code>formData.attachments.itemId</code> from <code>Office.context.mailbox.item.displayReplyAllForm</code>, which is according to documentation: <em>The EWS item id of the attachment. This is a string up to 100 characters.</em>?</p>
  
  <p>Here is the <a href="https://github.com/OfficeDev/office-js-docs/blob/master/reference/outlook/1.6/Office.context.mailbox.md" rel="nofollow noreferrer">guide</a> I'm following.</p>