title: Cannot read properties of undefined (reading '__type') from outlook
body: <p>I have faced issues in Angular, Outlook addon, I'm facing the &quot;<strong>Cannot read properties of undefined (reading '__type')</strong>&quot; issue on retrieving the content of <strong>cloud file attachment</strong>, in other attachments, it's working but not working in the cloud file attachment see the below code.</p>
  <pre><code>if (attachments.length &gt; 0) {
  for (let i = 0 ; i &lt; attachments.length ; i++) {
    var options = { asyncContext: { type: attachments.attachmentType } };
    item.getAttachmentContentAsync(attachments[i].id,options , this.handleAttachmentsCallback);
  
  }}
  </code></pre>
  <p>Error: -</p>
  <pre><code>**Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '__type')**
  </code></pre>
  <p>Please check the attachments :
  also please review this same issue he faces but not getting the solution.</p>
  <p><a href="https://stackoverflow.com/questions/71380337/typeerror-cannot-read-properties-of-undefined-reading-type/71380624#71380624">TypeError: Cannot read properties of undefined (reading &#39;__type&#39;)</a></p>
  <p><a href="https://i.stack.imgur.com/kLEds.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kLEds.png" alt="enter image description here" /></a></p>