title: Outlook API error Invalid OData type specified: Microsoft.OutlookServices.FileAttachment
body: <p>We have a function set up to send emails via Outlook from our web app and it's been working great, but suddenly this morning my email inbox is flooded with errors from our system saying it couldn't send the email with outlook because of a bad request. The errors all look like this:</p>
  <pre><code>{&quot;error&quot;:{&quot;code&quot;:&quot;BadRequest&quot;,&quot;message&quot;:&quot;Invalid OData type specified: \&quot;Microsoft.OutlookServices.FileAttachment\&quot;&quot;,&quot;innerError&quot;:{&quot;date&quot;:&quot;2021-07-02T05:43:00&quot;,&quot;request-id&quot;:&quot;XXX&quot;,&quot;client-request-id&quot;:&quot;XXX&quot;}}}
  </code></pre>
  <p>As I say it was working yesterday, but now it's not. And a lot of these don't have specific attachments outside of the embedded header image, which has not been changed since it was working.</p>
  <p>Any suggestions on reasons for the error?</p>