AutoFlow Tasks
With AutoFlow Tasks, a flow can hand work to a person – for example an approval or a choice – and wait until it is done. The task shows up in the AutoFlow task inbox of everyone who may work on it, they complete it on the task card, and the flow continues with the result.
There are three task types:
- Approval task – approve or reject, and continue along the matching path.
- Selection task – choose one or more rows from a list of records or values.
- Form task – fill in a form, with an optional preview next to it. The step Read task repeater reads the rows of its tables.
License
What a task needs depends on its type:
- Approval tasks are part of every paid AutoFlow license. Anyone can approve – no AutoFlow Tasks seat needed.
- Selection and form tasks need a paid AutoFlow license, and the person who completes the task needs an AutoFlow Tasks seat.
- A selection task for the user who started the flow is free – even with the free version of AutoFlow – as long as that user completes it while following the flow in its progress dialog. See How a flow waits.
AutoFlow Tasks seats are bought in the AutoFlow portal, as one pool for your whole organisation – it needs a paid AutoFlow license. Activating a user takes a seat from the pool, deactivating gives it back. A person counts once, however many environments and companies they work in. The Environments page of the portal shows how many seats are bought, taken and free, who holds one where, and lets you buy more or release a seat. In a sandbox and with an on-premises test license, seats are not needed.
On-premises, a database takes seats from the pool online, so the server needs to reach the AutoFlow portal. A database without internet access gets a fixed number of seats in its license file instead – set it for the database in the portal before you download the file. Those seats are counted in that database only.
If more seats are taken than your organisation has – after a reduction, or when the Tasks license has expired – nobody in any of your environments can complete selection or form tasks until an administrator deactivates users or releases seats in the portal. Approvals are not affected. The task inbox and the task card say so.
Activate users
Any user can be assigned a task, belong to a task group or stand in as a delegate. A seat is only needed to complete a selection or form task. An AutoFlow administrator activates users in AutoFlow Setup › Task Users › Activate Users – or right on a task group with Activate for AutoFlow Tasks. Activating needs a free seat in your organisation's pool; if there is none, AutoFlow says so and links to the portal to buy more. The page shows how many seats your organisation has taken and bought. It is the same AutoFlow Licensed Users page that other per-user products such as AutoFlow Receive use, here showing only the AutoFlow Tasks users.
When a user is deactivated, their open selection and form tasks go to their delegate, if the delegate has a seat – otherwise they become unassigned, so that any activated user can complete them. Their approvals, groups and delegations stay. A seat released in the portal deactivates the user at the next daily sync. A user who is deleted or disabled in Business Central leaves every group and delegation, and all their open tasks go to their delegate or become unassigned.
Completing a task needs no AutoFlow permission set. Activating users and maintaining task groups needs AutoFlow Admin.
Task groups
A task group is a set of users – for example FINANCE for everyone who approves invoices. The members list shows who has an AutoFlow Tasks seat; a selection or form task assigned to the group can only be completed by those members. A task assigned to a group can be completed by any of its members. Maintain the groups in AutoFlow Setup › Task Groups. Groups are shared by all companies.
Out of office and delegates
Every user sets in My Task Settings (from the task inbox):
- Out of office – while it is on, your delegate can complete the tasks assigned directly to you. A flow can switch it on and off as well.
- Delegate – who stands in for you. Delegates only reach tasks assigned directly to you, not group tasks, and there are no chains: your delegate's delegate does not stand in for you.
A directly assigned task can also be handed on with Reassign – by the assignee, by their delegate while they are out of office, or by an administrator.
The task inbox
The task inbox shows the open tasks of the current company. It opens on My Tasks: tasks assigned to you, to one of your groups, to someone you stand in for, or to nobody. All Tasks removes that filter. Overdue tasks are highlighted.
Open it with Task Inbox in the AutoFlow action group of your role center, from the Flow Workspace, or by searching for AutoFlow Task Inbox.
Open a task to see its instructions and attachments and to decide. Clicking a record attachment opens the record, a link opens in a new browser tab, and a document opens in the preview below the task (PDF, images, text files such as XML or JSON, and HTML); other files are downloaded.
An administrator can Cancel Task – the flow that waits for it then stops with an error.
The card of an approval task lists all approvers – every member of the group, or the assigned user – with their decision so far. The card of a selection task shows the list to choose from, with a search box – see The task card. The card of a form task shows the form – see The task card.
On a group task that takes a while, such as a selection, Take over marks the task as yours, so the other members see that you are on it; any member can take it over in turn, and Release frees it again.
Task history
Completed, rejected and cancelled tasks leave the inbox and go to the AutoFlow Task History (from the inbox, the Flow Workspace or the search). It is the audit trail: who decided, when, with which comment, on whose behalf, and why a task was cancelled. Opening a task there shows its card as it was decided.
How a flow waits
When a flow reaches a task step, it creates the task and pauses. It checks again regularly – every 5 minutes by default, set in AutoFlow Setup › Task Check Interval (Minutes) – and continues as soon as the task is done. The rest of the flow keeps running as the user who started it, whoever completed the task.
- If you start a flow yourself and the task is for you, the task opens right away in the wait dialog. Decide, and the flow continues at once. A selection task assigned to User who started the flow needs no seat here – closed and completed later from the inbox, or in a flow that runs in the background, it does.
- If the task is for someone else, the wait dialog closes and tells you who the flow is waiting for. The flow continues in the background once the task is done.
- Opening the execution of a flow that waits for a task you can complete opens the task as well.
While it waits, the execution shows which task it waits for, with a link to it.
Task steps cannot be used where a flow has to finish right away: in the triggers that run while someone works on a record (Document Modified, Released, Posted and Reopened, Page Opened and Page Closed), in the report triggers that return an answer (PDF Print, Report File Name), and in sub-flows. AutoFlow refuses to publish such a flow.
E-mails
Each user chooses in My Task Settings which e-mails they get:
- E-mail on New Task – when a task is assigned to you or one of your groups.
- Due Date Reminder and Remind Days Before Due – a reminder before a task is due.
- Overdue Digest – a summary of your overdue tasks, daily or weekly on Mondays.
The e-mails are written in the recipient's language and name the company in the subject. They are sent through the e-mail account assigned to the AutoFlow Tasks e-mail scenario, or the default account. Reminders and digests go out once a day, in the morning.