Digital Wellbeing and working smart in Microsoft 365

Digital Wellbeing in Microsoft 365 is about working smart with the tools you have at your disposal. There is a difference between having access to the tools and using them as intended. With the introduction of Microsoft Viva and specifically Viva Insights, we now see where Microsoft is headed. They are now all about using the tools and building good collaboration cultures. Viva Insights can measure meeting culture, chat culture and how much off hours working is done. But it is not enough to just tell people to use less internal emails, move away from chat and over to channels and work less in evenings. It is difficult to envision how to work in a different way when the change that needs to happen must happen in the individual and in the group.

This is where Digital Wellbeing comes in to the picture. The four modules I have defined as part of Digital Wellbeing is the HOW and WHAT when culture shows you WHY you need to change. The four modules are

  • Capture
  • Process & Execute
  • Teams Culture
  • Notifications

Full workshop for free on YouTube

During March 2022 I recorded everything I know about Digital Wellbeing and you get the all four modules for free. This ended up as 8 hours and 30 minutes of insights, demos and how to’s. You can view the full index with timestamps under each video in this blogpost.

Watch the explainer video

To get started, watch the video explaining the four modules in 14 minutes

Module 1 – Capture

Capture is all about storing your thoughts, ideas, dreams and tips in to Microsoft To Do. Meeting notes and deeper notes are captured in OneNote. The goal is to create stash-zones for your content so that you find them again. Why exactly To Do and OneNote? Watch my deep dive video explaining everything you need to know to get started with capture.

Modul 2 – Process & Execute

Taking capture to the next level is to reflect, process and organize your captured material. A task in To Do which you have captured could be a link to an article you want to read, reference material for your project, it could be someone asking you for more information or the start of a project. Organizing this unstructured information and breaking the tasks in to goals and actions will help “future you” make sense of the captures. The execute component of this module is about prioritizing the most important tasks for you that day, reserving time in your calendar using focus time in Viva Insights and using the Pomodoro technique to focus on one task for at least 25 minutes without distracting yourself. At the end of the day, you reflect on how the day went by using Viva Insights Virtual Commute. This is much harder than it sounds so we need to talk about this. Watch my deep dive video explaining all the details for this module

  • Digital Wellbeing: 0:00
  • Agenda: 5:40
  • Lists and List groups in ToDo: 7:47
  • Sorting and prioritizing tasks: 18:09
  • Recurring tasks: 28:19
  • Section Groups in OneNote: 36:21
  • Reflecting on your career: 41:28
  • Sorting to OneNote: 52:29
  • Organizing meeting notes: 55:01
  • Sorting to Microsoft Lists? 1:02:04
  • Planning time for focus: 1:16:17
  • Get started with My Day: 1:27:19
  • Breaking tasks into actions: 1:41:19
  • Executing on your tasks: 1:48:18
  • Reflecting on your day: 2:21:16
  • End note: 2:39:40

Module 3 – Teams Culture

For you to have a good day in Teams three things needs to happen

  1. Conversations about processes needs to move from chats to channel conversations so that you get the ability to mute parts of the conversation.
  2. We want larger Teams with more channels, rather than many teams with fewer channels and we want people to tag a person, a tag or the channel when reaching out. Never tag the Team (unless you are the Team owner or administrator) because there is no way of muting those notifications.
  3. Meetings should start and end in channel conversations, or chats if they are ad-hoc meetings. In that way we may save a number of meetings that are meetings about the meetings you are going to have and meetings about the meetings you just had. That is just a waste of time, respect yours and your colleagues time.

These are the topics we cover in the Teams culture module, watch the deep dive session here

Module 4 – Notifications

Notifications is the #1 skill everyone needs to master the next decade. Why? Work is not a place it is a mindset. The moment you see a notification about work, you instantly get pulled in to work mode. What more is that a timer seems to go off in your head and you feel you need to respond within 30 minutes. This is the challenge we are living in today, that you get notifications about not important information at the wrong time. There are three questions you need to ask yourself when you get a notification on your computer or mobile

  1. Why did you get the notification?
  2. Was it useful?
  3. How can you tune it so you get it not at all or at the correct time

This is what we dive in to in the module 4 video and we take is far as going through how to disconnect during vacation. Read my Microsoft TechCommunity article on notifications to get a jump start.

  • Digital Wellbeing 0:00
  • The challenge with notifications 5:02
  • Notifications in Teams 18:41
  • Quiet time in Teams mobile 32:37
  • Notifications in social media 47:48
  • Digital Wellbeing on Android 1:08:33
  • How to vacation 1:21:01
  • How to vacation Book time 1:28:05
  • How to vacation Inbox Zero and Brain dump 1:34:48
  • How to vacation Plan your first week getting back 1:40:34
  • How to vacation Quiet Time 1:43:30
  • End Note 1:47:23

End note

Digital Wellbeing can help you get your head above the water, perform better at work and at home and it will just make you happier in your life. Happiness comes from you feeling you are mastering your busy day and using the tools in smart way and removing stress from your life. That is what Digital Wellbeing is all about.

Set the custom Focusing status in Microsoft Teams from PowerShell using Power Automate

I am a Pomodoro Technique enthusiast. During a Pomodoro sprint it is important to mute distractions. This worked fine with custom presence states in Skype for Business, which is one of my most popular blog posts to date, on a daily basis. With Microsoft Teams, this has been a challenge, until now.

The Focusing custom Teams status can only be set by MyAnalytics via a calendar event called ‘Focus time‘. I have not been able to recreate this calendar event type manually, so it must be something in the header. During a ‘Focus time calendar event, the Teams client sets the status to Do Not Disturb with a custom name called Focusing.

Here is how to get started with Focusing custom Teams status

You can schedule such a calendar event at will using PowerShell and PowerAutomate

Personally, I prefer to manually control when my Teams client gets set to Focusing state. MyAnalytics schedules the calendar event as two hours long when calendar is open and weeks in advance. I needed a way to set this status at the time I am of my choosing when I was actually focusing, to mute distractions and tell my peers that I am in a focus, deep work, flow Pomodoro sprint. I found a way to use Power Automate to control set the Focusing status at will.

The Teams Focusing status fits well with the PowerShell Pomodoro Timer. Update 05.10.20: the status updates instantly after the calendar event is added to your Outlook

Watch the 3 first minutes showing the focusing status in action!

How I solved it

I trigger a Power Automate flow using a HTTP request trigger using Invoke-WebRequest in PowerShell. The flow takes two inputs, duration and a secret. If the secret is correct, to make sure the flow can’t be easily hacked, it gets my calendar and searches for calendar event with subject ‘Focus time’. It takes the first entry and changes start time and stop time for the event using the duration I have set, usually 25 minutes. Now I have a ‘Focus time’ calendar event that is set at the same time as my Pomodoro sprint with the same duration. After 1-3 minutes, my status will be updated to Focusing. After 25 minutes, plus 1-3 minutes, my status will be reset. BOOM, how cool is that!?

Prerequisites

Update 05.10.20: I have created a free way to do this using Microsoft To Do task as a trigger. No need for code adjustment, just download and use it. Read more here! If you want to use premium Power Automate trigger and PowerShell to set the status keep on reading :)

Update 08.01.21: Together with MVPs Dux Raymond Sy and Loryan Strant, I have created a Pomodoro YouTube series where we discuss the Teams custom focusing status and multiple ways to solve this. Check it out!

  • Calendar must be in Exchange Online
  • You must have MyAnalytics as part of your license and enabled
    • Schedule 1 period with MyAnalytics to get the calendar event
    • Available in Enterprise SKU’s
  • You must have Power Automate license and ability to use Premium triggers
    • The trigger used is HTTP request and is a Premium trigger
    • You may find that you can use other free triggers as well
    • Premium triggers are included in Dynamics 365 SKU’s
    • Premium triggers are not included in Microsoft 365 SKU’s
    • The standalone $15 Per User plan can run Premium triggers
  • If you want to use a trigger included in your Office 365 plan, check out my other method, using Microsoft To Do task as trigger

Creating the calendar event and importing the Power Automate flow

  • Create the calendar event in MyAnalytics
  • Import the flow in your Power Automate
    • Watch the full walkthrough of the import of the flow at 3:39 in the YouTube video
    • Download the HTTPSTriggerUniversalPomodoroFocustime.zip file here
    • Navigate to your personal Power Automate dashboard at https://flow.microsoft.com/
    • Go to My flows in the left menu and click Import
    • Click Upload and choose the zip file
    • To be able to complete the import you must click the wrench in the first line and choose Create as new under Setup
    • Next you must create the Outlook connector by clicking on the wrench in the second line for Related resources
      • Click Create new
      • Scroll down to Office 365 Outlook, click Create and authenticate as your user
      • Now you have created the Outlook connector, go back to the flow import website and select you new connector and Save
      • Import the flow by clicking Import
      • The import should be successful, navigate to My flows
    • Edit your new flow called HTTPSTriggerUniversalPomodoroFocustime.
    • Now, let’s go through it and update the flow for your environment

Configuring the Power Automate flow

Click Edit on the flow and expand When a HTTP request is received and copy the HTTP POST URL and save it for later

Expand Condition and change MySecret to your own and take note of it

If no is there to trigger if the secret is wrong, it is a small security measure so that people not easily can steal you flow URL, but they also need the secret, or you can change it if it does get lost

That is the only change you need to make to the flow because the flow will find your default calendar. Since the name of your primary calendar may be different in your language, we are looking for the calendar for your user with isRemovable=False

But there is one more thing, we want to edit one of the calendar ‘Focus Time’ calendar events created by MyAnalytics. We want to set the event to workingElswhere or has priority of low. In this way we have more control over which event we are manipulating.

That’s it! You are now ready to invoke your flow. In PowerShell you need to run the following code

[int]$Minutes = 25 #Duration of your Pomodoro Session, default is 25 minutes
[string]$Secret = "MySecret" #Secret for the flow trigger
[string]$AutomateURI = "YourFlowTriggerURI" #The URI used in the webrequest to your flow


#Invoking PowerAutomate to change set current time on your Focus time calendar event, default length is 25 minutes
    $body = @()
    $body = @"
        { 
            "Duration":$Minutes,
            "Secret":"$Secret"
        }
"@
Invoke-RestMethod -Method Post -Body $Body -Uri $AutomateURI -ContentType "application/json"

Go back to Power Automate and validate that the flow ran, check your Outlook calendar that the ‘Focus time’ event was moved to now the status should change almost instantly. When the calendar time is over, your status will be reset and you are available again.

The practical approach with the Pomodoro PowerShell timer

With the ability to control the status in Teams, I believe the Pomodoro PowerShell timer is feature complete. One thing is to be unavailable and reduce distractions, but it is very important to automatically become available again. The reason for WHY you would use this kind of timer and automation is to avoid getting distracted which breaks your flow and deep work. Research shows that it takes between 7-30 minutes to get back in to flow after you have seen just one email or message. Here is what the script does

  • Starts presentation mode to block popups on your computer
  • Hides badges on taskbar so that you do not get distracted by seeing that you have a new mail, task or chat
  • Opens you favorite flow and deep work Spotify playlist so that you do not spend time figuring out what to listen to
  • Uses IFTTT to mute your phone, works with Android and iOS
  • Finally set your status in Teams to Focusing
  • After the Pomodoro sprint is over, everything will be turned back on again
  • Watch my demo (and live commentary) of the script in the YouTube video :)

Below is a sample code to run the Start-SimplePmodoro.ps1 script which you can download from GitHub

Start-SimplePomodoro `
-SpotifyPlayList spotify:playlist:XXXXXXXXXXXXXXXXXX `
-IFTTTMuteTrigger pomodoro_start `
-IFTTTUnMuteTrigger pomodoro_stop `
-IFTTTWebhookKey XXXXXXXXX `
-Secret YourFlowSecret  `
-AutomateURI YourAutomateURI `

Watch how to get started with the Pomodoro PowerShell script at 3:39 in the YouTube video

Why is it important to automatically become available?

You have been gone for 25 minutes, use the pause to check if anyone has been trying to reach you, re-prioritize your tasks, get more coffee and then dive in to a new Pomodoro sprint. After 25 minutes it is OK to get distracted, but if nothing happens, just stay in the flow you jump started and get stuff done. Download the Pomodoro PowerShell timer from GitHub