Skip to main content

20226i8E830D1248623A43.jpg

 

Support frontline workers with NWC and Microsoft Shifts

In the current climate, it is more important than ever to automate internal processes in order to free up employees to focus on mission critical tasks. Using Nintex Workflow Cloud and Microsoft Shifts, we can automate your frontline's shift scheduling and leave request process to support key workers to spend less time on admin and more time doing what they do best.
 

 

What is Microsoft Shifts?

Microsoft Shifts is a Microsoft Teams add-on that can be used to create schedules for shift workers. In this example MS Shifts will be the scheduling front-end tool.

 

How will we connect NWC with MS Shifts?

In order to automate our scheduling process, we will use a custom Extender (which can be downloaded from the Connector Gallery). It utilises the Microsoft Graph API, so you will need to register an app in Azure Active Directory to grant the necessary permissions for interaction with Microsoft Shifts. The next section describes how you create the app registration.

 

Step 1: Create an app registration in AAD

  1. Log into Azure portal https://azure.microsoft.com/en-gb/features/azure-portal/
  2. Click Azure Active Directory
  3. Click App registrations
  4. Click New registration
  5. Paste https://{tenant-location}.nintex.io/connection/api/Token (tenant-location: eu, us, or au) into the textbox for redirect URI
  6. Click on Register
  7. Under API permissions click Add a permission
  8. Click Microsoft Graph
  9. Add the following permissions (application level should be sufficient, but you can add Delegated as well): 

     

    Group.Read.All

    Schedule.ReadWrite.All

    TeamMember.Read.All

  10. Once added click on Grant admin consent and click Yes
  11. Finally click on Certificates & secrets
  12. Click on New client secret
  13. Provide it with a name and select 24 months
  14. Copy the value, once you leave this screen you won’t have access to that value again, best save the secret value somewhere secure - to be used in the next step
  15. On the Overview step, copy the Application(client) ID - to be used in the next step

 

Step 2: Register the Nintex Workflow Cloud Extender:

  1. Download the MS Shifts Extender from the Connector Gallery
  2. Extract the Zip file
  3. In NWC, go to Xtensions
  4. Click on the orange and white plus sign to add a new Xtender
  5. Upload the JSON file in the extracted Zip file and click Next
  6. On security select Microsoft Graph
  7. Paste the Client ID and secret you copied in the previous section and click Next
  8. Provide a name for your connector, an icon, and click Publish
  9. Click on Connections
  10. Click on Add new
  11. Select the Xtender you just uploaded (sometimes you need to refresh this page before it is listed) and click Connect
  12. Provide a name and click Connect
  13. You should now be prompted to log into a Microsoft account, you will need to use an account that can perform the actions that you need (the user will need to be in the Team that you will be managing)

 

Step 3: Create your scheduling Form in NWC

    1. Click on Create Workflow
    2. Select Form as your start event
    3. Design the Form according to your needs, here is an example Form, which is specifically geared towards a Health Centre:

 

20242i6F4F4483108D72C0.png

 

This Form is built specifically for 3 types of shifts - Day Shift, Night Shift, and On Call. It also allows for repeating schedules, as well as the option to share changes to the team as soon as the schedule is complete. Finally we add a signature control in order for the Shift Coordinator to sign off on the proposed shift(s).

 

Step 4: Create the Workflow

Part 1: Generate a Shift Schedule and send to Shift Manager to sign

 

20256i50A483A7CFCE3CDD.png

 

Part 2: Archive signed Shift Schedule and create shifts

 

20257iF4C1355989543EC9.png

 

Create Shift component workflow

 

20258i02DC648C45943E4F.png

 

Part 3: Create schedule duplicates if specified, share changes, and notify the Shift Coordinator

 

20259i90CF4B239DC044D2.png

 

Step 5: Create the Leave Request Form

 

20260iFE93D613ECFBC4F1.png

 

This Form gets the leave reasons from Microsoft Shifts and allows the employee to decide how their cover is allocated - either to specific employees that they have organised with, or at the discretion of the Shift Coordinator. A file upload control will appear if the Leave Type is Sick Leave.

 

Step 6: Create the Leave Request workflow

 
Part 1: Get the User and Leave Type display name and create a Leave Request entry in SharePoint

 

20261i79E7D47C0ABEC92F.png

 

Part 2: Get HR Approval and update leave request status if approved, or send rejection email if rejected

 

20262i809A9C7ADB808E2E.png

 

Part 3: Create a shift list for cover request email

 

20263i703A2A59D2EBF223.png

 
Part 4: Get shift cover approval, update leave request status if approved, or send rejection mail if rejected

 

20264i470BA686F153E733.png

 
Part 5: Get manager approval, update leave request status if approved, or send rejection mail if rejected

 

20265iAA356E649402E1F7.png

 
Part 6: Move shifts to cover staff

 

20266i6E630EBB0166F746.png

 

Note: At the time of development the MS Graph's Update Shift endpoint was not functioning, so the shift had to be deleted and recreated with the new assignee

 

Part 7: Create Time Off items in MS Shifts, share the changes with the team, and notify the employee that their leave request has been approved

 

20267i2B0BD60DE9964751.png

 

What does this look like in MS Shifts?

 

Created Shifts

 

20268i89E8C4CBE2386EFA.png

 

Time Off

 

20269i4FB3437F5BABBDF5.png

 

 

What does it look like in SharePoint?

 

Landing Page

 

20270iD04008F49F8F1265.png

 

Leave Requests and Leave Calendar

 

20271iA133204541DCA647.png

 

Schedule audit trail

 

20272iFDFA5F88E8357B9E.png

 

Schedule Archive

 

20273iF0E8E69001831A45.png

 

Conclusion

With such a versatile platform like NWC, it's no wonder companies can react so rapidly to a changing and volatile climate. This example also illustrates how seamlessly NWC can connect to the Microsoft stack to enable your business to still use their existing systems in a more streamlined way.

 

You can watch the entire webinar on this solution here.

 

Hero image by rawpixel.com.

 

 

Be the first to reply!

Reply