skip to Main Content

Visual Studio Code – Office.context.mailbox.item.subject.getAsync is not a function

Requirement: Get email subject from outlook inbox by outlook add-in API. Environment: Outlook add-in (sideload) "Mailbox" MinVersion="1.1" Visual studio code Code: async function ReadEmailSubject() { document.getElementById("email-subject").innerText = ""; Office.context.mailbox.item.subject.getAsync(function (result) { var emailSubjectDiv = document.getElementById("email-subject"); if (result.status === Office.AsyncResultStatus.Succeeded) {…

VIEW QUESTION
Back To Top
Search