Skip to main content

Generic Workflow

The Generic Workflows extension for Microsoft Dynamics 365 Business Central provides features that allow the creation of workflow templates for any table. The extension offers the following features:

  • Create workflow templates for any table with the ability to specify which field(s) trigger the workflow
  • Restrict modifications to fields on any table based on conditions (e.g. prevent changes to the description of a purchase order once it is approved)

Setup

Generic Workflow Setup

You specify which features you want to use on the Generic Workflow Setup page.

Generic Workflow Setup

FieldPurpose
General
Enable Generic WorkflowsSpecifies that the generic workflow is enabled. This feature allows you to create workflow templates for any table.
Enable Record RestrictionsSpecifies if the Record Restrictions feature is enabled. This feature allows you to set up modification restrictions for pre-defined fields. For example, you can prevent changes to a purchase order line''s description once approved.
note

This is a global setting that can enable/disable all generic workflows.

Enable Generic Workflows

Once the generic workflow feature is enabled, you can use the Generic Workflow Table Setup action to set up the table for which you want to create a workflow template.

Generic Workflow Setup

Enter the table details, workflow description and category.

Generic Workflow Table Setting Card

FieldPurpose
General
IDSpecifies the ID of the table.
CodeSpecifies the workflow code (auto-generated).
Table NameSpecifies the name of the table.
DescriptionSpecifies the workflow description.
Workflow CategorySpecifies the workflow category.
ApprovalsSpecify if the approval workflow is triggered for all or some selected fields.
Active Workflow CodeSpecifies the active workflow code for the table.

Click the assist button on approvals to select/update the fields that require approval.

Generic Workflow Table Setting Card Approvals

Select the fields from the field list.

Generic Workflow Field Setting

FieldPurpose
General
No.Specifies the field number.
Field CaptionSpecifies the field caption.
SelectSpecify if the approval workflow is required for the field.

Once the fields are selected, click on the Create Workflow Template action to create a workflow template for the table.

Generic Workflow Create Workflow Template

You can then use the workflow template to create a new workflow.

Enable Record Restrictions

Once the record restrictions are enabled, you can set up the field restriction for a table using the Restricted Record Table Setup action.

Generic Workflow Setup

Enter the table details and description.

Restricted Record Changes Table Setting Card

Click the assist button on restricted changes to select/update the fields that must be restricted.

Restricted Record Changes Table Setting Card

Select the fields from the field list.

Restricted Record Changes Field Setting

FieldPurpose
General
No.Specifies the field number.
Field CaptionSpecifies the field caption.
SelectSpecify whether to include the field in the restricted list .

Using the record restriction filters, you can set conditions and filters for field restriction. For example, changing the purchase line description is restricted once the purchase order is released.

Record Restriction Tables

Add the table, conditions, table relations and filters.

Record Restriction Tables

Record Restriction Filters

Restricted Record Changes Field Setting

This app can be used as a companion app with the Australia/New Zealand Accelerator to support approval workflows on the following tables:

  • Vendor Bank Account
  • Customer Bank Account
  • Employee

Supported Countries

This app is supported in all countries, where Microsoft Dynamics 365 Business Central is available.

See Also