Javascript – Error calling Office.context.mailbox.item.body.getTypeAsync when reading an Outlook message
I'm creating my first Outlook Web Add-in app. When I'm calling Office.context.mailbox.item.body.getTypeAsync when viewing an email in Outlook, I get the error message "Uncaught TypeError: Office.context.mailbox.item.body.getTypeAsync is not a function": (function () { Office.onReady(function () { Office.context.mailbox.item.body.getTypeAsync((typeResult) => { if…