title: outlook-addin Office.AttachmentContent interface not working
body: <p>In my outlook-addin I am trying to get the attachments from the active e-mail message.</p>
  
  <p>I copy pasted the example from:
  <a href="https://docs.microsoft.com/en-us/javascript/api/outlook/office.attachmentcontent?view=outlook-js-preview" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/javascript/api/outlook/office.attachmentcontent?view=outlook-js-preview</a></p>
  
  <p>exact example code:</p>
  
  <pre><code>var item = Office.context.mailbox.item;
  var options = {asyncContext: {currentItem: item}};
  item.getAttachmentsAsync(options, callback);
  
  function callback(result) {
      if (result.value.length &gt; 0) {
          for (i = 0 ; i &lt; result.value.length ; i++) {
              result.asyncContext.currentItem.getAttachmentContentAsync(result.value[i].id, handleAttachmentsCallback);
          }
      }
  }
  
  function handleAttachmentsCallback(result) {
      // Parse string to be a url, an .eml file, a base64-encoded string, or an .icalendar file.
      switch (result.value.format) {
          case Office.MailboxEnums.AttachmentContentFormat.Base64:
              // Handle file attachment.
              break;
          case Office.MailboxEnums.AttachmentContentFormat.Eml:
              // Handle email item attachment.
              break;
          case Office.MailboxEnums.AttachmentContentFormat.ICalendar:
              // Handle .icalender attachment.
              break;
          case Office.MailboxEnums.AttachmentContentFormat.Url:
              // Handle cloud attachment.
              break;
          default:
              // Handle attachment formats that are not supported.
      }
  }
  </code></pre>
  
  <p>yet upon addin launch I get an error saying <code>item.getAttachmentsAsync</code> is not a function.</p>
  
  <p>I looked in the API docs for help but can't find any information on this issue.</p>
  
  <p>Any clues? maybe you encountered this problem too?</p>