Please refer my previous articles to create an app for Outlook Web App
Visual Studio 2013: http://www.c-sharpcorner.com/UploadFile/anavijai/office-365-how-to-create-an-app-for-outlook-2013-using-visu/
Napa Tool: http://www.c-sharpcorner.com/UploadFile/anavijai/office-365-how-to-create-an-app-for-outlook-web-app-using-n/
In this blog you will see how to get the item type in Outlook Web App.
AppRead folder: Home.html
- <body>
-
- <div id="content-main">
- <div class="padding">
- <p><strong>Gets the type of item that an instance represents.</strong></p>
- <table id="details">
- <tr>
- <th>ItemType:</th>
- <td id="itemType"></td>
- </tr>
- </table>
- </div>
- </div>
- </body>
Home.js
-
-
-
- (function () {
- 'use strict';
-
-
- Office.initialize = function (reason) {
- $(document).ready(function () {
- app.initialize();
-
- displayItemDetails();
- });
- };
-
-
- function displayItemDetails() {
- var item = Office.cast.item.toItemRead(Office.context.mailbox.item);
- $('#itemType').text(item.itemType);
- }
- })();
Output:
Reference:
https://msdn.microsoft.com/en-us/library/fp161138.aspx