To create a Microsoft Outlook Add-in that allows users to tag an email with a custom field Matter ID in JavaScript, follow these steps:
Create a new Outlook Add-in project in Visual Studio. Choose "Office Add-ins" -> "Outlook Web Add-in" template and select JavaScript language.
In the project, open the Manifest.xml file and add a new Context Menu button with a unique id under the MessageComposeCommandSurface section.
1501 chars36 linesIn the project, open the Home.html file and add a form to define the custom field control with input field for Matter ID.
180 chars8 linesIn the project, open the Home.js file and add a function to execute when the custom menu button is clicked.
index.tsx187 chars8 linesAttach an event listener to the custom menu button to invoke onCustomTagClicked function.
index.tsx172 chars5 linesIn the project, open the App.js file and call the addCustomTagClickListener() function on startup.
index.tsx70 chars4 linesThat's it! Now the add-in allows users to tag an email with a custom field Matter ID. The Matter ID value is saved as custom property in the email object and can be retrieved and used in other parts of the add-in or integrated with other systems.
gistlibby LogSnag