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

Office.js dialog taking up more space than specified in displayDialogAsync options – Javascript

I'm using Office.js to display a dialog in an Office add-in. I call the displayDialogAsync function like this: Office.context.ui.displayDialogAsync(`https://localhost:3000/notification.htmlmessage=${message}&icon=${icon}`,{ height: 10, width: 10, displayInIframe: true },function (asyncResult) { dialog = asyncResult.value; dialog.addEventHandler(Office.EventType.DialogMessageReceived, processDialogAlertMessage);}); However, the dialog that appears takes up…

VIEW QUESTION

Visual Studio Code – VSTO Outlook: Catching Send Event

I am trying to create plug-in that will catch any send item and show warning before sent out. Currently I am using the below code private void ThisAddIn_Startup(object sender, System.EventArgs e) { Outlook.Application application = Globals.ThisAddIn.Application; application.ItemSend += new Outlook.ApplicationEvents_11_ItemSendEventHandler(Application_ItemSend);…

VIEW QUESTION
Back To Top
Search