Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save markdon/ab3b2629dd617c25538106046a2bbdbd to your computer and use it in GitHub Desktop.
Save markdon/ab3b2629dd617c25538106046a2bbdbd to your computer and use it in GitHub Desktop.
Gets the required attendees in Appointment Attendee mode.
name: Get required attendees (Appointment Attendee)
description: Gets the required attendees in Appointment Attendee mode.
host: OUTLOOK
api_set: {}
script:
content: |
$("#get-required-attendees").click(getRequiredAttendees);
function getRequiredAttendees() {
var apptRequiredAttendees = Office.context.mailbox.item.requiredAttendees.getAsync((result) => {
console.log(JSON.stringify(result.value, undefined, 1));
});
}
language: typescript
template:
content: |-
<section class="ms-font-m">
<p class="ms-font-m">This sample shows how to get the <b>required attendees</b>.</p>
<p><b>Required mode</b>: Appointment Attendee</p>
</section>
<section class="samples ms-font-m">
<h3>Try it out</h3>
<button id="get-required-attendees" class="ms-Button">
<span class="ms-Button-label">Who are the required attendees?</span>
</button>
</section>
language: html
style:
content: |-
section.samples {
margin-top: 20px;
}
section.samples .ms-Button, section.setup .ms-Button {
display: block;
margin-bottom: 5px;
margin-left: 20px;
min-width: 80px;
}
language: css
libraries: |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js
@types/office-js
[email protected]/dist/css/fabric.min.css
[email protected]/dist/css/fabric.components.min.css
[email protected]/client/core.min.js
@types/core-js
[email protected]
@types/[email protected]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment