Skip to content

Instantly share code, notes, and snippets.

@bsungur-hub
Created April 1, 2024 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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
office-ui-fabric-js@1.4.0/dist/css/fabric.min.css
office-ui-fabric-js@1.4.0/dist/css/fabric.components.min.css
core-js@2.4.1/client/core.min.js
@types/core-js
jquery@3.1.1
@types/jquery@3.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment