Skip to content

Latest commit

 

History

History
 
 

ace-teams-worldclock

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

World Clock Microsoft Teams Personal App/Teams Tab

Summary

To see a video overview of this solution check out this resource on YouTube: https://youtu.be/j7-u-sBc5qI

The World Clock solution helps teams and managers deal with geographically dispersed team members helping make it easier to reconcile working times and meeting schedules with all the members. The solution can be added as a Teams tab to help members of a Team work together but also as a Personal App to help you manage your personal "teams" who may live in various time zones.

Overview

For Teams

The solution automatically loads each team member into the solution. You can then set your own working schedule, indicating working, possibly working, and not working times. The solution will attempt to determine you IANA timezone when it loads for you, but you can also manage what timezone the solution associates with you to help your co-workers schedule meetings and communicate with you. You can also set the timezone for other team members, including guests so that you can get the solution up and running faster. They can always adjust the values for themselves when they visit the tab.

Once all team members update their working hours (if they're different from the 9:00 to 5:00 default values) and set their timezones you are ready to start scheduling meetings. By selecting the team members you will see a schedule solution show you the working hour availability for each of the selected teammates. Once you have settled on, and selected the best meeting time, you can click Schedule Meeting which deep links into the Microsoft Teams meeting scheduler allowing you to set up any specific meeting settings and a description and schedule the meeting.

Note: Due to limitations with the Microsoft Teams deep linking feature we are unable to include the guests in the meeting invite through the link, they can be added to the meeting manually once you're in the schedule screen. For convenience the members that couldn't be added will be noted in the description field.

The configurations for the team solution is stored in a file in the Team's SharePoint Site Assets library in a folder called WorldClockApp.

For Personal Teams

The solution when used as a personal app will automatically load, and create a default view of, the top 20 people related to you based on the Microsoft Graph algorithm, see person resource type for more information. Because the team members are personal to you you will be able to set the working schedule, if different than the default, and the timezone for all the users in your view.

Once all the team members are set up, you can start using the solution in the same manner as the Teams tab version.

The configurations for the personal solution are stored in a file in your personal OneDrive in a folder called WorldClockApp.

Viva Dashboard Adaptive Card Extension (ACE)

This solution also contains a Viva Desktop Adaptive Card Extension. As of this time the Dashboard page layout is not generally available so unless you were part of the private preview program you will not be able to add the extension to a page in SharePoint however, if you have access to SPFx 1.13 you can download the source code and serve the solution into the workbench to view the ACE.

World Clock ACE

Used SharePoint Framework Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Solution

Solution Author(s)
world-clock-spfx Sympraxis Consulting (@SympraxisC) - Original concept, design, and development from @Bob German

Version history

Version Date Comments
1.0 September 8, 2021 Initial release

Known Issue

The Teams Desktop client doesn't recognize US/Hawaii as a valid timezone, this does work in the web client. Using US/Aleutian will give you the same result (GMT-10).

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

Deploy Default Build

A default solution (sppkg) file for this sample exists in the deployment folder. This sppkg will need to be deployed in the tenants site collection app catalog with the Make this solution available to all sites in the organization option selected. By doing so the solution will be available in every site collection in the tenant, however since the solution has not been enabled for SharePoint deployment it will not be seen anywhere in the UX. Instead, the Teams manifest that is included in the package will be deployed which creates a Personal App that can then be pinned to the left rail in Teams and, if desired, audience targeted to specific user groups using the Manage app setup policies in Microsoft Teams. Further, the App is then also available to be added to individual Teams to provide a Team level experience.

Steps for deployment:

  1. Download the SPPKG file, navigate to the world-clock-spfx.sppkg file in the deployment folder of this repository. Select Download to save the file to your computer.

  2. Upload the sppkg file into the tenant's app catalog by selecting upload, finding the file, and then selecting OK.

    Upload SPPKG File

  3. A dialog will be displayed asking if you trust the solution. Make sure you check the Make this solution available to all sites in the organization check box and then select Deploy.

    Deploy SPPKG

  4. Once the solution has been added to the app catalog be sure to check in the file.

  5. After the solution has deployed you will need to authorize the Graph API permissions requested. To see, and approve, them navigate to the SharePoint Admin Center and then to the API access section under Advanced menu item. This will show you a list of pending permissions requests. By selecting each request and then selecting Approve the permissions will be granted to allow the solution to access the information it needs through the Microsoft Graph. For more information on the individual permissions this solution is requesting please see the Microsoft Graph REST API v1.0 reference (Note: the screen shot in an example, please make sure to approve the API requests for for teh SPFx Teams Samples - World Clock Package)

    Approve API Permissions

  6. After the solution has deployed you will need to sync the solution into your Teams app store. To do so, select the SPFx Teams Samples - World Clock solution in the app catalog and then under the files tab in the ribbon the Sync to Teams option will be enabled, select it.

    Sync App Manifest To Teams

  7. Assuming you received no errors while the solution during the Teams sync, and you've approved the API permissions, you should now be able to add it into your Teams App Bar as a personal tab. You may want to consider adding the app as a custom pinned site based on the Teams setup policies, you can learn more about doing so by visiting Manage app setup policies in Microsoft Teams. Further, for more information on changing the permissions on who has access to the app, you can read more View app permissions and grant admin consent in the Microsoft Teams admin center.

  8. (Optional) You may also want to add the App to one or more Teams as a new tab in a channel. To do so, navigate to the Team and Channel you want to add the App to. Select the (+) to add a new tab and search for World Clock. Once you have added the App as a tab it will load all the team members into the configuration allowing you to use the solution.

    Add Teams Tab

    Search for World Clock App

    Select World Clock App from Search Results

    Configure World Clock Tab

References