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 created date and time of an item in Outlook Web App.
AppRead folder: Home.html
- <body>
-
- <div id="content-main">
- <div class="padding">
- <p><strong>Gets the date and time that an item was created.</strong></p>
- <table id="details">
- <tr>
- <th>DateTime Created:</th>
- <td id="dateTimeCreated"></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);
- $('#dateTimeCreated').text(item.dateTimeCreated);
- }
- })();
Output:
Reference:
https://msdn.microsoft.com/en-us/library/fp161128.aspx