Skip to content

Instantly share code, notes, and snippets.

@bsungur-hub
Created April 1, 2024 15:30
Show Gist options
  • Save bsungur-hub/adc0ea1836aab5307711e7b70bdacb3d to your computer and use it in GitHub Desktop.
Save bsungur-hub/adc0ea1836aab5307711e7b70bdacb3d to your computer and use it in GitHub Desktop.
Veli
name: Attendance
description: Veli
host: OUTLOOK
api_set: {}
script:
content: |
$("#get-required-attendees").on("click", getRequiredAttendees);
function getRequiredAttendees() {
const apptRequiredAttendees = Office.context.mailbox.item.requiredAttendees;
console.log("Required attendees:");
for (let i = 0; i < apptRequiredAttendees.length; i++) {
console.log(
apptRequiredAttendees[i].displayName +
" (" +
apptRequiredAttendees[i].emailAddress +
") - response: " +
apptRequiredAttendees[i].appointmentResponse
);
}
}
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