Skip to content

Commit 51b8187

Browse files
ElizabethSamuel-MSFTgithub-actions
andauthored
Automatically generated docs (#2237)
Co-authored-by: github-actions <[email protected]>
1 parent 2b4803c commit 51b8187

File tree

88 files changed

+274
-167
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+274
-167
lines changed

docs/docs-ref-autogen/outlook/outlook/office.appointmentcompose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ properties:
564564
{
565565
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
566566
message: "Non-persistent informational notification message with id = " + id,
567-
icon: "icon1",
567+
icon: "PG.Icon.16",
568568
persistent: false
569569
};
570570
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -581,7 +581,7 @@ properties:
581581
{
582582
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
583583
message: "Persistent informational notification message with id = " + id,
584-
icon: "icon1",
584+
icon: "PG.Icon.16",
585585
persistent: true
586586
};
587587
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook/outlook/office.appointmentread.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -735,7 +735,7 @@ properties:
735735
{
736736
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
737737
message: "Non-persistent informational notification message with id = " + id,
738-
icon: "icon1",
738+
icon: "PG.Icon.16",
739739
persistent: false
740740
};
741741
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -752,7 +752,7 @@ properties:
752752
{
753753
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
754754
message: "Persistent informational notification message with id = " + id,
755-
icon: "icon1",
755+
icon: "PG.Icon.16",
756756
persistent: true
757757
};
758758
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook/outlook/office.mailbox.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2601,6 +2601,44 @@ methods:
26012601
26022602
26032603
- The `loadItemByIdAsync` method can only be called on messages in the same mailbox.
2604+
2605+
2606+
#### Examples
2607+
2608+
2609+
```TypeScript
2610+
2611+
// Link to full sample:
2612+
https://raw.githubusercontent.com/OfficeDev/office-js-snippets/prod/samples/outlook/90-other-item-apis/get-loaded-message-properties.yaml
2613+
2614+
2615+
async function getSenderEmailAddress(item) {
2616+
const itemId = item.itemId;
2617+
await new Promise((resolve) => {
2618+
Office.context.mailbox.loadItemByIdAsync(itemId, (result) => {
2619+
if (result.status === Office.AsyncResultStatus.Failed) {
2620+
console.log(result.error.message);
2621+
return;
2622+
}
2623+
2624+
const loadedItem = result.value;
2625+
const sender = loadedItem.from.emailAddress;
2626+
appendToListItem(sender);
2627+
2628+
// Unload the current message before processing another selected message.
2629+
loadedItem.unloadAsync((asyncResult) => {
2630+
if (asyncResult.status === Office.AsyncResultStatus.Failed) {
2631+
console.log(asyncResult.error.message);
2632+
return;
2633+
}
2634+
2635+
resolve();
2636+
});
2637+
});
2638+
});
2639+
}
2640+
2641+
```
26042642
isPreview: false
26052643
isDeprecated: false
26062644
syntax:

docs/docs-ref-autogen/outlook/outlook/office.mailboxenums.actiontype.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ remarks: >-
2727
const details = {
2828
type: Office.MailboxEnums.ItemNotificationMessageType.InsightMessage,
2929
message: "This is an insight notification with id = " + id,
30-
icon: "icon1",
30+
icon: "PG.Icon.16",
3131
actions: [
3232
{
3333
actionText: "Open insight",

docs/docs-ref-autogen/outlook/outlook/office.messagecompose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ properties:
726726
{
727727
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
728728
message: "Non-persistent informational notification message with id = " + id,
729-
icon: "icon1",
729+
icon: "PG.Icon.16",
730730
persistent: false
731731
};
732732
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -743,7 +743,7 @@ properties:
743743
{
744744
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
745745
message: "Persistent informational notification message with id = " + id,
746-
icon: "icon1",
746+
icon: "PG.Icon.16",
747747
persistent: true
748748
};
749749
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook/outlook/office.messageread.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -929,7 +929,7 @@ properties:
929929
{
930930
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
931931
message: "Non-persistent informational notification message with id = " + id,
932-
icon: "icon1",
932+
icon: "PG.Icon.16",
933933
persistent: false
934934
};
935935
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -946,7 +946,7 @@ properties:
946946
{
947947
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
948948
message: "Persistent informational notification message with id = " + id,
949-
icon: "icon1",
949+
icon: "PG.Icon.16",
950950
persistent: true
951951
};
952952
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook/outlook/office.notificationmessageaction.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ remarks: >-
4242
const details = {
4343
type: Office.MailboxEnums.ItemNotificationMessageType.InsightMessage,
4444
message: "This is an insight notification with id = " + id,
45-
icon: "icon1",
45+
icon: "PG.Icon.16",
4646
actions: [
4747
{
4848
actionText: "Open insight",

docs/docs-ref-autogen/outlook/outlook/office.notificationmessages.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ methods:
9797
{
9898
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
9999
message: "Non-persistent informational notification message with id = " + id,
100-
icon: "icon1",
100+
icon: "PG.Icon.16",
101101
persistent: false
102102
};
103103
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -114,7 +114,7 @@ methods:
114114
{
115115
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
116116
message: "Persistent informational notification message with id = " + id,
117-
icon: "icon1",
117+
icon: "PG.Icon.16",
118118
persistent: true
119119
};
120120
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook_1_10/outlook/office.appointmentcompose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ properties:
509509
{
510510
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
511511
message: "Non-persistent informational notification message with id = " + id,
512-
icon: "icon1",
512+
icon: "PG.Icon.16",
513513
persistent: false
514514
};
515515
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -526,7 +526,7 @@ properties:
526526
{
527527
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
528528
message: "Persistent informational notification message with id = " + id,
529-
icon: "icon1",
529+
icon: "PG.Icon.16",
530530
persistent: true
531531
};
532532
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

docs/docs-ref-autogen/outlook_1_10/outlook/office.appointmentread.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ properties:
700700
{
701701
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
702702
message: "Non-persistent informational notification message with id = " + id,
703-
icon: "icon1",
703+
icon: "PG.Icon.16",
704704
persistent: false
705705
};
706706
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);
@@ -717,7 +717,7 @@ properties:
717717
{
718718
type: Office.MailboxEnums.ItemNotificationMessageType.InformationalMessage,
719719
message: "Persistent informational notification message with id = " + id,
720-
icon: "icon1",
720+
icon: "PG.Icon.16",
721721
persistent: true
722722
};
723723
Office.context.mailbox.item.notificationMessages.addAsync(id, details, handleResult);

0 commit comments

Comments
 (0)