This is now installable from the gallery at: Nintex Gallery - Out of Office Task Delegation
--
Hi,
Some time back we launched Task Delegation for NAC so that a task assignee, or somebody given the Business Owner role for a given Workflow could change who tasks are allocated to without updating the workflow design.
A natural progression from this is to allow users to set themselves as out of office, or have an administrator do it for them, which will delegate all tasks present and future to another user.
While we don’t have that feature out of the box yet it’s easy enough to build!
There are many ways to skin this particular cat, but let me share one approach.
Problem
We want to enable users to set themselves out of office for a particular time duration.
Approach
We can use a Workflow with a Start Form to populate a Nintex Table with the following structure:
Form:
The workflow uses the new Nintex Tables Create a Row action to populate a table like this:
We can then use a scheduled workflow that runs everyday to delegate tasks.
This approach uses the Nintex APIs, and requires an Application Token to get an Auth Token to make the API calls.
This workflow operates like this:
- Schedule Start - everyday 0800
- Get an Auth token for the Nintex API
- Loop 12 times
- Query the table for any records where today is between the from and to dates
- Loop over these user records
- Get current users tasks via Web Service action iReference 2]
- Loop over current users tasks
- Get taskAssignments
- Loop over current task taskAssignments
- Check if taskAssignment has aready been delegated
- No
- Delegate task
- No
- Get taskAssignments
- Loop over current users tasks
- Get current users tasks via Web Service action iReference 2]
- Clean-up table entries where today is after the To date
An example of this should be posted to the Nintex Gallery in the coming days and this article will be updated.
Possible Extensions
Once we see how easy this is, we can imagine a few options to make it even better:
- Integrate to a leave request application so the user doesn’t have to fill in the OOF manually.
- Integrate with Employee Offboarding to delegate any tasks with a user who’s leaving the organisation.
- Allow a select group of admin users/business owners to delegate other people’s tasks
- Integrate with MS Graph APIs to enable Outlook Out of Office automatically for the same time period.
- Allow free/busy access to users Outlook calendars and delegate NAC tasks when the user’s calendar is set as out of office.
Hope fun with it!
References
- Get Auth Token: Applications | Nintex Automation Cloud
- List Tasks: List tasks | Nintex Automation Cloud
- Delegate Task: Delegate a task assignment | Nintex Automation Cloud
-
Gallery Implementation: Nintex Gallery - Out of Office Task Delegation