Create workflows from workflow templates

Create workflows from workflow templates

On the Workflow page, you create a workflow by creating a series of workflow steps on the lines. Each step consists of a workflow event (When Event), moderated by event conditions (On Condition), and a workflow response (Then Response), moderated by response options. The fields on workflow lines provide fixed lists of event and response values that represent the scenarios that Business Central supports. Learn more at Create Workflows.

To save you time when you create approval workflows, Business Central provides workflow templates. The templates are available on the Workflow Templates page. You can use the templates as they are, or customize them to meet your needs. The codes for the workflow templates from Microsoft are prefixed with MS-.

Important

When you change the when event for a workflow step, the then responses also changes. Sometimes, then responses of other when events refer to these then responses as the next step in the workflow. After you change a when event, verify that the next steps for its then events are correct.

For example, the Vendor Approval Workflow workflow template has a primary when event Approval of a vendor is requested. This when event has a Send approval request for the record and create a notification then response, which other then responses reference. If you change the primary Approval of a vendor is requested when event to, for example, A vendor record is changed, the then response is cleared along with the references.

The then responses for the An approval request is delegated and An approval request is approved (with the On Condition of Pending Approvals >0) when events are examples of where changing a primary when event can cause problems. Their then responses have a next step that refers to the Send approval request for the record and create a notification then response of the Approval of a vendor is requested when event. Because the then response for the Approval of a vendor is requested when event is no longer available, the indented when events won't work as expected.

You'll need to specify the next steps for the then responses for when events that referred to the changed when event.

If you change a workflow template, but later regret the change, use the Reset Microsoft Templates action to revert to the original setting for the workflow. 

Caution

The Reset Microsoft Templates action resets all of the Microsoft workflow templates. You can't reset a single template.

Another way to quickly create a workflow is to import it, for example, if you exported it from another instance of Business Central. Learn more at Export and Import Workflows.

To create a workflow from a workflow template

  1. Choose the Lightbulb that opens the Tell Me feature. icon, enter Workflows, then choose the related link.

  2. Choose the New Workflow from Template action. The Workflow Templates page opens.

  3. Select a workflow template, then choose OK.

    The Workflow page opens for a new workflow containing all the information of the selected template. The value in the Code field is extended with, for example, "-01" to indicate this is the first workflow created from the workflow template.

  4. To customize the workflow, edit the workflow steps or add new steps. Learn more at Create Workflows.


    • Related Articles

    • Walkthrough: Set up and use a purchase approval workflow

      You can automate the process of approving new or changed records, such as documents, journal lines, and customer cards, by creating workflows with steps for the approvals in question. Before you create approval workflows, you must set up an approver ...
    • Create workflows to connect tasks in business processes

      You can create workflows that connect tasks in business processes that are performed by different users. You can include system tasks, such as automatic posting, as steps in workflows that are preceded or followed by user tasks. Requesting and ...
    • Set up a sequence of workflow users

      Before you can create approval workflows, you must set up the users who can submit requests and their approvers. For example, you can specify who receives a notification to act on a workflow step. You set up approval workflow participants on the ...
    • Approval workflow notifications

      Set up your workflows to automatically notify users when their attention is required for a step in a workflow. Many workflow responses involve notifying a user an event they must act on has occurred. For example, you can set it so User 2, the ...
    • Specify when and how to receive workflow notifications

      In workflows that require that someone approves changes, you must set up the approval users who approve or reject changes. For example, you might want someone to approve new records. An important part of the approval user setup is to specify how and ...