Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file.
Empty file.
Empty file.
Empty file.
31 changes: 31 additions & 0 deletions addins/outlook/Home_olk.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Expires" content="0" />
<title></title>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>

<!-- <script src="https://appsforoffice.microsoft.com/lib/1.1/hosted/office.debug.js" type="text/javascript"></script> -->

<script src="outlook.debug.js" type="text/javascript"></script>
<script src="app_olk.js" type="text/javascript"></script>
</head>
<body>
<div id="content-main">
<button onclick="location.reload()">Reload </button>
<button onclick="getSubject()">Get mail subject</button>
<button onclick="setSubject()">Set mail subject</button>
<button onclick="getRestId()">Get RestId</button>
<button onclick="getLanguage()">Get Language</button>
<button onclick="closeContainer()">Close Container</button>
<br/>
<button id="clearResult" onclick="clearResult()">ClearResult</button>
<br/>
<textarea id="result" style="width: 100%;height: 1000px;"></textarea>
</div>
</body>
</html>
49 changes: 49 additions & 0 deletions addins/outlook/app_olk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
function getSubject() {
Office.context.mailbox.item.subject.getAsync(callback);

function callback(asyncResult) {
var subject = asyncResult.value;
writeResult("GetSubject result is: "+ subject);
}
}

function setSubject() {
Office.context.mailbox.item.subject.setAsync("New subject!", function (asyncResult) {
if (asyncResult.status === "failed") {
console.log("Action failed with error: " + asyncResult.error.message);
writeResult("Set subject Action failed with error: " + asyncResult.error.message);
}
else {
writeResult("SetSubject done.");
}
});
}

function getUserProfile() {
writeResult(Office.context.mailbox.userProfile.displayname);
}

function getRestId() {
let itemId = Office.context.mailbox.item.itemId;
let restId = Office.context.mailbox.convertToRestId(itemId, Office.MailboxEnums.RestVersion.v2_0);
writeResult(restId);
}

function getLanguage() {
writeResult(Office.context.displayLanguage);
}

function closeContainer() {
Office.context.ui.closeContainer();
}

function clearResult() {
document.getElementById("result").value = "";
}

function writeResult(result) {
document.getElementById("result").value += ("\n" +result);
}

Office.initialize = function (reason) {};
Office.onReady(function(info) {});
69 changes: 69 additions & 0 deletions addins/outlook/en-us/outlook_strings.debug.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
_u = typeof _u === "object" ? _u : {};
_u.ExtensibilityStrings = _u.ExtensibilityStrings || {};

_u.ExtensibilityStrings.l_APICallFailedDueToItemChange_Text='The selected item has been changed.';
_u.ExtensibilityStrings.l_ActionsDefinitionMultipleActionsError_Text='Only a single action is currently supported.';
_u.ExtensibilityStrings.l_ActionsDefinitionWrongNotificationMessageError_Text='Actions can\'t be defined for this notification message type.';
_u.ExtensibilityStrings.l_AttachmentDeleteGeneralFailure_Text='The attachment cannot be deleted from the item.';
_u.ExtensibilityStrings.l_AttachmentDeletedBeforeUploadCompletes_Text='The user removed the attachment before upload has completed.';
_u.ExtensibilityStrings.l_AttachmentErrorName_Text='Attachment Error';
_u.ExtensibilityStrings.l_AttachmentExceededSize_Text='The attachment cannot be added because it is too big.';
_u.ExtensibilityStrings.l_AttachmentItemIdTooLong_Text='One or more of the attachment IDs is too long.';
_u.ExtensibilityStrings.l_AttachmentNameTooLong_Text='One or more of the attachment names is too long.';
_u.ExtensibilityStrings.l_AttachmentNotSupported_Text='The attachment type is not supported.';
_u.ExtensibilityStrings.l_AttachmentUploadGeneralFailure_Text='The attachment cannot be added to the item.';
_u.ExtensibilityStrings.l_AttachmentUrlTooLong_Text='One or more of the attachment URLs is too long.';
_u.ExtensibilityStrings.l_CallSaveAsyncBeforeToken_Text='The token can\'t be retrieved until the item is saved.';
_u.ExtensibilityStrings.l_CannotAddAttachmentBeforeUpgrade_Text='Attachments cannot be added while the full reply or forward is being retrieved from the server.';
_u.ExtensibilityStrings.l_CannotPersistPropertyInUnsavedDraftError_Text='Notifications can\'t be persisted in unsaved drafts. Save the item before you call this API.';
_u.ExtensibilityStrings.l_CursorPositionChanged_Text='The user changed the position of the cursor while the data was being inserted.';
_u.ExtensibilityStrings.l_DataWriteErrorName_Text='Data Write Error';
_u.ExtensibilityStrings.l_DeleteAttachmentDoesNotExist_Text='The attachment cannot be deleted because attachment with the attachment index cannot be found.';
_u.ExtensibilityStrings.l_DisplayNameTooLong_Text='One or more of the display names provided is too long.';
_u.ExtensibilityStrings.l_DisplayReplyFormHtmlBodyRequired_Text='The \'htmlBody\' is required.';
_u.ExtensibilityStrings.l_DuplicateNotificationKey_Text='A notification with the provided key already exists.';
_u.ExtensibilityStrings.l_Duplicate_Category_Error_Text='One of the categories provided is already in the master category list.';
_u.ExtensibilityStrings.l_ElevatedPermissionNeededForMethod_Text='Elevated permission is required to call the method: \'{0}\'.';
_u.ExtensibilityStrings.l_ElevatedPermissionNeeded_Text='Elevated permission is required to access protected members of the JavaScript API for Office.';
_u.ExtensibilityStrings.l_EmailAddressTooLong_Text='One or more of the email addresses provided is too long.';
_u.ExtensibilityStrings.l_EwsRequestOversized_Text='The request exceeds the 1 MB size limit. Please modify your EWS request.';
_u.ExtensibilityStrings.l_ExceededMaxNumberOfAttachments_Text='Attachments cannot be added because the message already has the maximum number of attachments';
_u.ExtensibilityStrings.l_HtmlSanitizationFailure_Text='The HTML santization has failed.';
_u.ExtensibilityStrings.l_Insufficient_Item_Permissions_Text='The user doesn\'t have the permissions required to perform this operation.';
_u.ExtensibilityStrings.l_InternalFormatError_Text='There was an internal format error.';
_u.ExtensibilityStrings.l_InternalProtocolError_Text='Internal protocol error: \'{0}\'.';
_u.ExtensibilityStrings.l_Internal_Server_Error_Text='The Exchange server returned an error. Please look at the diagnostics object for more information.';
_u.ExtensibilityStrings.l_Internet_Not_Connected_Error_Text='The user is no longer connected to the network. Please check your network connection and try again.';
_u.ExtensibilityStrings.l_InvalidActionType_Text='The value of the parameter \'actionType\' is invalid. The accepted value is \"showTaskPane\".';
_u.ExtensibilityStrings.l_InvalidAttachmentId_Text='The attachment ID was invalid.';
_u.ExtensibilityStrings.l_InvalidAttachmentPath_Text='The attachment path was invalid.';
_u.ExtensibilityStrings.l_InvalidCommandIdError_Text='The value of the parameter \'commandId\' is invalid.';
_u.ExtensibilityStrings.l_InvalidDate_Text='The input doesn\'t resolve to a valid date.';
_u.ExtensibilityStrings.l_InvalidEndTime_Text='The end time cannot be before the start time.';
_u.ExtensibilityStrings.l_InvalidEventDates_Text='The end date occurs before the start date.';
_u.ExtensibilityStrings.l_InvalidParameterValueError_Text='The value of the \'{0}\' parameter is invalid.';
_u.ExtensibilityStrings.l_InvalidSelection_Text='The selection is invalid.';
_u.ExtensibilityStrings.l_InvalidTime_Text='The input doesn\'t resolve to a valid time.';
_u.ExtensibilityStrings.l_Invalid_Category_Error_Text='Invalid categories were provided.';
_u.ExtensibilityStrings.l_Item_Not_Saved_Error_Text='The id can\'t be retrieved until the item is saved.';
_u.ExtensibilityStrings.l_MessageInDifferentStoreError_Text='The EWS ID can\'t be retrieved because the message is saved in a different store.';
_u.ExtensibilityStrings.l_NoValidRecipientsProvided_Text='No valid recipients were provided.';
_u.ExtensibilityStrings.l_NotificationKeyNotFound_Text='There are no notifications with the provided key.';
_u.ExtensibilityStrings.l_NullOrEmptyParameterError_Text='The parameter \'{0}\' is mandatory and it can\'t be null or empty.';
_u.ExtensibilityStrings.l_NumberOfNotificationsExceeded_Text='The notification couldn\'t be added because the notification limit has been reached.';
_u.ExtensibilityStrings.l_NumberOfRecipientsExceeded_Text='The total number of recipients in the field can\'t exceed {0}.';
_u.ExtensibilityStrings.l_OffsetNotfound_Text='An offset for this time stamp couldn\'t be found.';
_u.ExtensibilityStrings.l_Olk_Http_Error_Text='The request has failed. Please look at the diagnostics object for the HTTP error code.';
_u.ExtensibilityStrings.l_ParameterValueTooLongError_Text='The value of the \'{0}\' parameter is too long. The maximum number of characters is \'{1}\'.';
_u.ExtensibilityStrings.l_ParametersNotAsExpected_Text='The given parameters do not match the expected format.';
_u.ExtensibilityStrings.l_PersistedNotificationArrayReadError_Text='The API call you made failed because the persisted notifications couldn\'t be retrieved.';
_u.ExtensibilityStrings.l_PersistedNotificationArraySaveError_Text='The API call you made failed because notifications couldn\'t be persisted.';
_u.ExtensibilityStrings.l_RecurrenceErrorMaxOccurrences_Text='The recurring series exceeds the maximum limit of 999 occurrences.';
_u.ExtensibilityStrings.l_RecurrenceErrorZeroOccurrences_Text='The recurring series has no occurrences in the specified date range.';
_u.ExtensibilityStrings.l_RecurrenceInvalidTimeZone_Text='The specified time zone is not supported.';
_u.ExtensibilityStrings.l_RecurrenceUnsupportedAlternateCalendar_Text='The recurrence pattern was set by the user using an alternate calendar that is not supported.';
_u.ExtensibilityStrings.l_Recurrence_Error_Instance_SetAsync_Text='A recurrence pattern can\'t be set for a single occurrence in a series.';
_u.ExtensibilityStrings.l_Recurrence_Error_Properties_Invalid_Text='The recurrence pattern isn\'t valid. Please check that the specified recurrence properties align with the recurrence type.';
_u.ExtensibilityStrings.l_SaveError_Text='Connection error occurred while trying to save the item on the server.';


1 change: 1 addition & 0 deletions addins/outlook/en-us/outlook_strings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading