Skip to main content

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

Upgrade instructions

Migrating from the Per-Tenant version

We have provided a migration tool to migrate your data from the per-tenant version to the AppSource version of the app. This tool is only available to Theta consultants.

Prerequisites

  • Generic Workflow - PTE - version 26.1.0.0 or greater.
  • Migrate PTE Generic Workflow to AppSource - version 27.0.1.0 or greater.
  • Refactor any custom extensions dependent on the Generic Workflow - PTE. In most cases, the refactoring will be straightforward as we have maintained feature parity between the two editions of this app.

Process - Business Central

caution
  1. Please ensure you run through this process in a sandbox environment and perform the necessary testing before proceeding to do this in production.
  2. It is important to follow these instructions in sequence and that you do not uninstall the Generic Workflow - PTE before you install the AppSource version.
  1. Upgrade to the latest Generic Workflow - PTE version.
  2. Install the Generic Workflow from AppSource.
  3. Install the Migrate PTE Generic Workflow to AppSource app. The data migration happens during the installation process and runs for all companies.
  4. Open the Data Migration Summary to perform a high-level check of the data migration. You can check this in all companies if you like, but you do not need to do this.

Data Migration Summary - Navigation_

Data Migration Summary - Overview_

  1. Uninstall the Migrate PTE Generic Workflow to AppSource app. Do not unpublish the app yet.
  2. Uninstall the Generic Workflow - PTE app. Do not unpublish the app yet. This will also uninstall any custom extensions dependent on the Generic Workflow - PTE (if applicable).
  3. If applicable, install custom extensions dependent on the Generic Workflow.
  4. Perform smoke testing to ensure the extension works as expected.

Rollback

The process described has a fail-safe, as we have not deleted the data from the PTE at this point (please note exclusions below). If you encounter any issues, you can follow these steps to revert to the PTE version:

  1. Reinstall the Generic Workflow - PTE app and any dependent apps.
  2. Reinstall the Migrate PTE Generic Workflow to AppSource app.
  3. Open the the Data Migration Summary and select the Revert Permissions Back to PTE action.
  4. Uninstall and unpublish the Migrate PTE Generic Workflow to AppSource app.
  5. Uninstall the Generic Workflow AppSource app. :::

Final Steps

caution

After carrying out the steps below, you cannot revert to the Per-Tenant version of the app. Only commence with these steps once you are confident that the migration has been successful.

As a final step, once you have validated the migration outcome, you can remove all the data related to the Generic Workflow - PTE app. To do this:

  1. Reinstall the Generic Workflow - PTE app.
  2. Unpublish the Migrate PTE Generic Workflow to AppSource app.
  3. Uninstall the Generic Workflow - PTE app and specify to delete extension data.
  4. Unpublish the Generic Workflow - PTE app.