Skip to main content

Approval Rules

Go To: Setup --> ExFlow Manual Setup --> ExFlow Approval Rules

To automate the selection of approvers the ExFlow Approval Rules can be used.

Approval Rules are used based on the filters assigned. The more filters that are assigned, the higher priority the Approval Rule will have. All assigned filters must match the data of the document if the Approval Rule should be applied automatically.

The Approval Rule can have filters so that it is used only when a certain combination of dimension values, Job, Vendor, G/L Account etc is used. The rule adds an approval flow.

An Approval Rule has one or more Approval Groups. Approval Groups are added on the Approval Rule Lines.

Create a New Approval Rule

Click "New" and create the rule.

Approval Rule – General

General
Code:Add a code the describes the Approval Rule
Name:Add a name that describes the Code
Rule For:It is possible to create separate Approval Rules for all document types: Invoice, Credit Memo, Order and Quote. Open "Rule For" to select the document type:
Approval Rule General
Tick "Use" for the selected document type. It is possible to choose more than one document type within the same approval rule
Rule for Document Type
And the new ExFlow Approval Rule will only be applied for the chosen document type.
Approval Rule General
Rule for Invoices:For Invoices it is possible to add one rule for:
Cost account Invoices, Matched against Purchase Order, PO Connected with Difference or PO Connected without Difference
Disabled:When an Approval Rule is Disabled, it can only be used when applying manually or via Reference
Priority:If there is several Approval Rules with same numbers of hits, the approval rule with highest number in priority will be added automatically
Use Total Invoice Amount:Activate if the rule should add Approval Groups based on total document amount or amount on current line
Confidential Approval:Activate Confidential Approval to set up an approval flow filtered on users with Confidential Access
Changed By:Last user to that changed and saved setting for current rule
Changed Date:Last date and time when current rule was changed

Approval Rule General

Approval Rule – Filters

Two filters for dimensions in combination can be selected on one Approval Rule. All assigned filters and additional filters must match the data of the document if the Approval Rule should be applied automatically.

When selecting a value, the option will be activated automatically.

Filters
Dimension Code 1:Choose a Dimension Code
Dimension Value Filter 1:Filter: Choose a Dimension Value for selected Dimension Code
Dimension Code 2:Choose a second Dimension Code
Dimension Value Filter 2:Filter: Choose a Dimension Value for second selected Dimension Code
First Approver Filter:Can be added to the document when interpret a reference.
Read more under section Business Functionality --> Reference Codes
Vendor Filter:Select one or several Vendor No´s

Approval Rule Filters

Approval Rule - Additional Filters

All assigned filters and Additional Filters must match the data of the document if the Approval Rule should be applied automatically.

When selecting a value, the option will be activated automatically.

Additional Filters
Line Type:Choose line type G/L Account, Item, Resource, Fixed Asset, or Charge (Item)
Line Type Filter:Add value for selected Line Type
Purchaser Filter:Add filter for Purchaser
Job Filter:Add Job Filter
Person Responsible Filter:Add filter for Person Responsible on Jobs
Vendor Posting Group:Add filter for Vendor Posting Group

Approval Rule Additional Filters

Approval Rule Lines

Add as many Approval Groups as needed for the Approval Rule. With four eyes-principle (two approvers) add at least two groups. With six-eyes principle (three approvers) add at least three groups.

An Approval Rule should always contain at least one Approval Group with "Over Amount" and “Not Over Amount” set to zero. If not, there is a risk that the invoice does not go out for approval and cannot be posted.

If it is required that at least two users approve the document line, then a setting like below could be used:

Approval Rule Lines

If one approval group always approves and the second only approves amount over 10 000 then a setting like below could be used:

Approval Rule Lines

With four-eyes principle (two approvers) and the second Approver Group is different depending on the Amount.

If first approver is Approval Group 1 and always approves, the second approver depending on amount of 10 000, then a setting like below could be used. Approval Group 2 will only approve documents with amount up to 9 999,99 and Approval Group 3 from 10 000 or more:

Approval Rule Lines

Always Propose New Approvers

Go to: Setup --> ExFlow Setup --> Approval

Approval Rules and Dynamic Approval Rules allows ExFlow to automatically identify and apply Approval Rules or Dynamic Approval Flow for documents that have been modified by any user in ExFlow Web.

ExFlow Setup Approval - Always Propose New Approvers

Example for Approval Rule without Dynamic Approval Type:
Approval Rules are driven by Dimension Department.

Invoice is initially coded with Department "ADM" and Approval Rule with filter for ADM is applied.

During approval in ExFlow Web, a user changes department to "SALES" and approves the invoice.

Always Propose New Approvers logic will now replace the previous Approval Rule to apply a new one that is driven by "SALES".

New Approval Rules will be applied if the invoice coding has been changed to match a better suited Approval Rule once the user approves the invoice. It will not be applied if the user does not approve the invoice.

Example for Dynamic Approval Rule with Dynamic Approval Type:
If Approval Rules are driven by Dimension Owner for Department. For setup, read more under section Business Functionality --> Approval Rules --> Dynamic Approval Flow for Dimension Owners below.

Invoice is initially coded with Department "ADM" and Approval Rule for Dimension Owner is applied.

During approval in ExFlow Web, a user changes department to "SALES" and approves the invoice.

Always Propose New Approvers logic will now replace the previous Approvers in the same Approval Rule to apply approvers that is driven by "SALES".

This will not change the Approval Rule, just Approvers from Dimension Owner Setup.

Note
Dynamic Approval Rules will not be applied if the Approval Rule of the invoice was added by an ExFlow Reference, or manually added in the Import Journal. This can be useful for sensitive documents.

Any additional approvers that have been added manually to a document will not be replaced when ExFlow Web applies a new Approval Rule. It will only replace the users that have been added automatically.

Approval Rules can also be used with Approval Groups based on "Dynamic Approval Type" such as Dimension Owners, Person Responsible, etc. For setup, read more under section Approval Rules --> Dynamic Approval flow for Dimension Owners, Jobs, or Purchasers below.

The way this functionality works is that ExFlow Web will automatically apply better suited Approval Rules if identified. The remaining approvers from the previous Approval Rule will be removed and new approvers will be added from the new Approval Rule.

Dynamic Approval Flow for Dimension Owners

ExFlow Dimension Owners is a tool to limit the amount of used Approval Rules and instead select the correct approvers in a dynamic way. It is possible to combine different dimension values in the same rule with an order set based on the Approval Group.

Dynamic Approval Flow - Dimension Owner

Connecting Approval Groups to Dimension Values
Go to: Setup --> ExFlow Manual Setup --> ExFlow Dimension Owners

Set up an approval flow for a specific dimension value. Open a new card by clicking on "New".

Select the Dimension and the Dimension Value. Then enter the approvers that should be included for this Dimension Value. At least one approver must be selected.

Dimension Owner

Copy Dimension Owners
When a Dimension Owner card is created, the function "Copy Dimension Owners" can be used, to automatically create the rest of the Dimension Values.

The selected Dimension based on the selected Dimension Owner. Choose if this should be applied to:

Generate for
One Value:Create one copy to a specific Dimension Value.
All Values:Create and copy to all Dimensions Values.
Replace One Value:Copy and replace for an already created Dimension Owner Card.
Replace All Values:Copy and replace for all Dimension Owner Cards.

Copy Dimension Owners

Dynamic Approval Group – Dimension Owner
Go to: Setup --> ExFlow Manual Setup --> ExFlow Approval Groups

When the Dimension Owners are created, a new ExFlow Approval Group need to be created. Set the "Dynamic Approval Type" to "Dimension Owner", then add the Dimension in the "Dimension Code" field.

Use the function "Default Approval Group" to assign where a Dimension Owner is missing instead of ignoring this dimension completely.

When using Dynamic Approval Type, it is not possible to add Approval Group Members manually.

Approval Group - Dimension Owner

Approval Rule – Dimension Owner
Go to: Setup --> ExFlow Manual Setup --> ExFlow Approval Rules

Add an Approval Rule that applies for all documents with no filters (enable the Approval Rule), or for the dimension with Dimension Owners just created.

Approval Rule - Dimension Owner

Add the Dynamic Approval Group with Dynamic Approval Type “Dimension Owner” just created and ExFlow will dynamically add the correct approvers based on the dimension coded on the document.

In this case the Department Dimension Owner will approve the invoice first, then IT-department for all amounts.

We also added CFO as an approver if the document is over 500 000 and CEO for amount over 1 000 000.

If there are multiple approvers in the Dimension Owner Card, then that order will be first in this approval flow.

Approval Rule Lines- Dimension Owner

Activate “Always Propose new Approvers”
Go to: Setup --> ExFlow Manual Setup --> ExFlow Setup

Activate "Always Propose New Approvers" in ExFlow Setup to create a dynamic approval flow if changing coding on ExFlow Web.

Read more under section Business Functionality --> Approval Rules --> Always Propose New Approvers above.

ExFlow Setup - Approval

Workflow for Dimension Owners

Show Current Dimension Owners
Go to: Import Journal --> Import Lines --> Line --> Show Current Dimension Owners

The function "Show Current Dimension Owners" can be used in the ExFlow Import Journal and ExFlow Approval Status.

Import Journal Lines Menu

Go to: Approval Status --> Document Lines --> Line --> Show Current Dimension Owners

Approval Status Document Lines Menu

This function will open a filtered page and show all the current Dimension Owners Cards, depending on the currently added Dimension Values on the coded line.

Dynamic Approval Flow for Jobs

It is possible to work with either Person Responsible and Project Manager in a Dynamic Approval Flow for Jobs.

Some setup is needed to use Dynamic Approval Flow for Jobs.

Dynamic Approval Flow - Jobs

Connecting Approvers to Person Responsible
To work with Person Responsible added to approval flow, connect the Resource to ExFlow User.

ExFlow User - Resource

Connecting Approvers to Project Manager
To work with Project Manager added to approval flow, then make sure that the BC System User is connected to an ExFlow User.

Read more under section Business Functionality --> ExFlow User --> Create a System User

ExFlow User - System User

Dynamic Approval Group – Person Responsible / Project Manager
Create an ExFlow Approval Group with Dynamic Approval Type set to either "Person Responsible" or "Project Manager":

In both cases, it is possible to use the function “Default Approval Group” to assign where either Person Responsible or Project Manager is missing on the Job card.

When using Dynamic Approval Type, it is not possible to add Approval Group Members manually.

Approval Group - Person Responsible

Approval Group - Project Manager

Approval Rule – Person Responsible / Project Manager
Create an Approval Rule for automatically applying Person Responsible or/and Project Manager from Jobs.

In this example a filter is added for all vendors and all jobs.

Approval Rule - Jobs

Bertil Boo should always approve before Person Responsible on the project. The same could be done using Project Manager instead/together with Person Responsible.

Approval Rule Lines - Person Responsible

Activate “Always Propose new Approvers”
Activate "Always Propose New Approvers" in ExFlow Setup to create a dynamic approval flow if changing coding on ExFlow Web.

ExFlow Setup - approval

Default Job Task No
When using Jobs in Business Central Standard a default Job Task No. can be useful if most of the Jobs have the same Task.

Add Default Job Task No. in ExFlow Setup.

ExFlow Setup - approval

When adding a Job No. in Import Journal or by coding on ExFlow Web Job Task No. will automatically be added from Default Job Task No. in ExFlow Setup.

Import Journal - Job Task

Add the Columns for Jobs and Tasks to ExFlow Web from ExFlow Setup.

The Job Line Type still needs to be added manually in the Import Journal or ExFlow Web, but will not be updated if changing Job No. or Job Task No.

Workflow for Person Responsible / Project Manager

Job No. JOB00010 contains Person Responsible BRITTA.

Jobs - JOB0000 - Britta

If added Job No. JOB00010 in Import Journal, Approval Rule JOBS through Approval Group with Person Responsible will automatically add BRITTA as approver. As mentioned earlier, the same functionality could be used with Project Manager instead or together with Person Responsible.

Import Journal - Jobs

If changing Job No. on ExFlow Web, Approver, BRITTA, will automatically be updated to Person Responsible (or Project Manager) on added Job No. Duplicated approvers will automatically be removed.

Dynamic Approval Flows Purchasers

Dynamic approval flows can be set up based on Purchaser Code. If a Purchaser Code is set on the Purchase Document, then ExFlow can automatically add Purchaser to the approval flow.

Dynamic Approval Flow Purchasers

Connecting Approvers to Purchaser
To work with Purchaser added to approval flow, connect Purchaser Code to ExFlow User.

ExFlow User - Related Purchaser Code

Dynamic Approval Group – Purchaser
Create an Approver Group with the Dynamic Approval Type ‘Purchaser’.

It is possible to use the function “Default Approval Group” to assign when Purchaser is missing.

When using Dynamic Approval Type, it is not possible to add Approval Group Members manually.

Approval Group - Purchaser

Approval Rule– Purchaser
Create an Approval Rule for automatically applying Purchaser to the approval flow.

In this example a filter is added for all vendors and all purchasers.

Approval Rule - Purchaser

In this case if Purchaser on the document is added as an Approver.

Approval Rule Lines - Purchaser

ExFlow will now automatically assign approver based on the Purchaser Code value on the Purchase Document Header. If retrieving lines matched towards different purchase orders with multiple Purchaser Codes, then ExFlow will also be able to retrieve the correct Purchaser Code associated with document line.

A tip is also to utilize personalize to view the purchaser code field in Import Journal (lines or header), since the fields are hidden per default.

Always Propose new Approvers
When working with Dynamic Approval Type ‘Purchaser’ the Approvers will be added from Import Journal. After the document is created, there is no function to change Purchaser on the document lines. Therefore, the approval flow will not be changed after the document is created, during the approval flow.