Skip to main content

Upgrade and migrate ExFlow data


Feel free to download and read documents before start:
Download technical documents

Introduction

Background

This section describes how to upgrade/migrate BC C/AL ExFlow data to BC AL ExFlow data.

Upgrade and migrate ExFlow data

Considerations

The ExFlow AL BC version is not a 1-1 conversion of earlier C/AL based version of ExFlow, i.e., there may be differences in both functionality and in how data is presented/migrated. Here follows some of the key differences between the versions:

• The Requisition functionality is not supported in ExFlow Business Central AL. Documents and settings related to the requisition functionality is therefore not migrated and the feature is not available in BC AL.

• There are major changes in how comments work/are presented, therefore some comments that are migrated will display as created/written by a “system user”.

Upgrading/moving database to Microsoft SaaS

Ensure that the upgraded BC database and the ExFlow addon has supported available cloud versions. Then follow Microsoft’s instructions on how to cloud migrate local databases to SaaS.

Prerequisites

The ExFlow data model needs to be fully upgraded to ExFlow 5.41 version in BC 14. NAV/BC must be upgraded to a Microsoft supported version according and according to Microsoft’s instructions.

ExFlow steps to do:

  1. Upgrade ExFlow version to ExFlow 5.41 in BC14 see ‘’Upgrade ExFlow version to ExFlow 5.41 in BC14.’’
  2. Handle PDF/Image for export from C/AL to file storage see instruction ''Create PDF files to export from C/AL.''
  3. Create data to ExFlow upgrade tables and upgrade to BC AL see ‘’Start migrating BC14 ExFlow C/AL data to ExFlow AL data.’’

Step 1

Check the current ExFlow version and NAV/BC version

Go to: Departments--> ExFlow Setup--> About ExFlow to find your ExFlow version:

Upgrade and migrate ExFlow data

Go under the pile in the ribbon and click on ''Help'' and ''About Microsoft Dynamics 365 Business Central''.

Upgrade and migrate ExFlow data

If current ExFlow version is < ExFlow 5.22 then an upgrade of ExFlow to ExFlow 5.41 must be done with upgrade script.

Read more in section Upgrade ExFlow 3.50 to ExFlow 5.41 or Upgrade ExFlow 4.XX to ExFlow 5.41

If current ExFlow version is >ExFlow 5.22 then merge existed ExFlow code to ExFlow objects in BC14 with version ExFlow 5.41.

Upgrade scripts from earlier versions can be downloaded from the SignUp Software AB partner portal or requested from SignUp Software AB support.

Check PDF document storage for ExFlow

To start, go to ‘’ExFlow Setup --> Folders--> File storage type’’ to check if the documents are stored in database or in a file share:

Upgrade and migrate ExFlow data

If document is stored in File share, then two options exist:

  1. Import document to database. Read more under section Import PDF/Images to database before upgrade.

  2. Export documents to file share from BC/NAV C/AL and import documents from Azure file storage into BC AL.
    Read more under section ''Create documents files to export in C/AL and import documents in AL.''

Import PDF/Images to database before the upgrade

Start BC RTC client in ExFlow version > 5.22.

Go to: Departments --> ExFlow Setup --> Navigate --> Migrate ExFlow Files (Advanced)

Click on Migrate ExFlow Files (Advanced) and edit the Migrate ExFlow files window with needed Import information.

Upgrade and migrate ExFlow data

If there are multiple companies that use ExFlow, verify the file paths are updated in the ExFlow Setup.

If there is only one company, depending on where the file share is located, it’s possible to either import the files from the paths in the setup, or to select it manually from Invoice Path and Attachment Path.

Make sure that Migrate XML files field is un ticked, and that Replace/Ignore File Conflicts field is ticked.

If there are a lot of documents, it is possible to limit the import by entering folder names in Image Name From and Image Name to.

Moreover, it’s also possible to select the company to import files from by selecting the company in Only Migrate in Company.

It’s possible to change paths in “Folders” tab in ExFlow Setup.
Click on ‘’Preview’’ to continue.

Upgrade and migrate ExFlow data

Upgrade ExFlow version to ExFlow 5.41 in BC 14

Upgrade ExFlow 3.50 to ExFlow 5.41

Finish all document in import journal in ExFlow.

Import ExFlow_350_to_5XX_STEP1_(NAV2009R2).fob.

Run codeunit 12057134 EX Upgrade 350 to 5XX Step1.fob.

Delete store procedure in SQL manager.

Upgrade and migrate ExFlow data

Upgrade NAV2009R2 to (NAV2015 or later)

Merge ExFlow 5.XX into customers (NAV 2015 or later) object.

Import merged ExFlow 5.XX objects to upgraded (NAV2015 or later)

Choose: Sync. Schema Later

Import Upgrade tool ExFlow_350_to_5XX_STEP2_(NAV2015 or later).fob

Choose: Sync. Schema Later

Compile ExFlow objects now

Choose: Sync. With validation

Start Tool --> Data Upgrade in (NAV2015 or later)

Upgrade and migrate ExFlow data

ExFlow 5.XX data ready for ExFlow setup configuration and Web installation.

Upgrade ExFlow 4.XX to ExFlow 5.41

Merge ExFlow 5.41 to customers version of ExFlow to BC14 version and create a fob with ExFlow objects.

Start BC14 development environment.

Run Synchronize of tables.

Choose: ''Tools--> Sync. Schema For All Tables--> With Validation''.

Upgrade and migrate ExFlow data

Import merged customer ExFlow 5.41 objects that have been created.

Choose: ‘’Sync. Schema For All Tables--> Later’’.

Import Upgrade tool ExFlow_UpgradeTool_from500_to541 (BC).fob.

Choose: ‘’Sync. Schema Later’’

Compile ExFlow object.

Choose: Now – with validation

Upgrade and migrate ExFlow data

Choose Tools --> Data Upgrade --> Start

Upgrade and migrate ExFlow data

Upgrade and migrate ExFlow data

Data upgrade finished.

Validate ExFlow data.

Step 2

Create documents files to export in C/AL and import documents in AL

This can be done before or after upgrade (if document images aren't upgraded)

Export images/PDF documents from BC C/AL

Get DocMigrate_New_BC14.fob and import it into C/AL development environment.

Upgrade and migrate ExFlow data

Run report 60012 Export Inv to XML.

Select a ‘’Path to export’’, it is the root path where images/pdf are stored, then click on OK.

Upgrade and migrate ExFlow data

Upgrade and migrate ExFlow data

Click on Yes to export all records in the database. a pop-up message with all summation of exported images will then be shown.

Upgrade and migrate ExFlow data

Create folder and files:

Upgrade and migrate ExFlow data

Create Azure File Storage

For support regarding below, please contact your internal IT department or trusted Business Central partner.

To be able to create a File Import Setup in ExFlow Business Central, an Azure File Storage must be created before. The Access key (among other things) is needed.

Create Azure Storage Account

Log in to Azure Portal and click on ''Storage accounts'' to create a storage account.

Upgrade and migrate ExFlow data

Click on ''Create storage account'', use default and fill in all required settings.

Make sure that public end point is selected on networking tab.

Choose Review and create the account.

Create an Azure File Share

In Azure Portal, continue to create an Azure file share.

Select the storage account, and go to File shares under Data Storage.

Create a file share, then click on the newly created file share.

Create a directory (subfolder) in the file share called ExFlow or any other name by choice.

Step 3

Start migrating BC14 ExFlow C/AL data to ExFlow AL data with Cloud migration

Move ExFlow data to ExFlow upgrade tables

After the upgrade to ExFlow 5.41, then start import. Run File -> Import choose file Upgrade_New_BC14_XX.fob.

Upgrade and migrate ExFlow data

Run codeunit 12026809 this copy all ExFlow company data to all ExFlow Upgrade tables.

Start Cloud migration

Setup Cloud migration in current Business Central version (follow Microsoft's instructions).

Start Cloud Migration Management choose Manage Custom Tables.

Upgrade and migrate ExFlow data

Important!: Only choose all ExFlow tables with ''Upg'' or ''Up'' after name, see below picture of the ''Migration Table Mapping''.

Remove all others ExFlow table so no data from those tables are moved.

Upgrade and migrate ExFlow data

Run migration.

After the migration is done, search for Ex Upgrade From CAL in Business Central:

Upgrade and migrate ExFlow data

From the page ''Ex Upgrade From CAL'', go under ''Actions --> Run ExFlow Migration for Current Company''.

Upgrade and migrate ExFlow data

If there is more than one company, go under ''Actions --> Run ExFlow Migration for all companies''.

Go under * Related-- > ExFlow Migration Status info* to view the log of upgrade procedure per company.

Upgrade and migrate ExFlow data

After the upgrade, follow the instructions in below section ''Post upgrade activities''.

Post upgrade activities

These actions may require application knowledge of the ExFlow BC AL addon and which features were used/will be used in the upgraded ExFlow BC version. Utilize the ExFlow wizard for every company that ExFlow should be setup in.

  • In the Default company:
  1. (Re)-assign ExFlow default company.
  2. Setup ExFlow E-mail notifications.
  • In all (relevant) companies:
  1. Activate the Company for ExFlow Web.
  2. Setup EDC-integration settings.
  3. Import required Data Exchange definition.

Also, request and activate an ExFlow Business Central License Key.

Insert data to ExFlow from upgrade tables

ExFlow File Import Setups

Go to: ExFlow File Import Setups to import images/PDF documents to Business Central.

File Import SetupsExFlow File Import Setups
New:Create a new File Import Setup
Manage:Edit, view or delete the setup
Run Import:Run the import process
Enable/Disable:Enable/disable the import source
More options--> Actions--> Show Ongoing ImportsShows a list of pending import files

Import images/PDF document to BC AL via ExFlow File Import Setups

Go to ExFlow File Import Setups and click on New to create a new File Import Setup.

Under the General -section, enter a Code, description and choose ''Import From: Azure File''. When ''Azure File'' gets selected, then both ''Image Folder'' and ''Image Folder'' will be set to ''exflow'' per default under the ''Data (XML)'' -section and ''Image (PDF)'' -section.

Add ''Data Exchange Type'' under the ''Data (XML)''- section. Under the ''Azure File''- section, add information about the Account Name, Access Key, File Share and the base URL.

Enable the setup.

ExFlow File Import Setups

Copy all files and folders to the created Azure file storage Image folder (in this example is folder name ExFlow)

Upgrade and migrate ExFlow data

Upgrade and migrate ExFlow data

Migrate Documents via Document Migration Tool

Next step is to utilize the Migrate Document Tool.

Go to: ExFlow Setup page --> Action --> Functions --> Migrate Documents

Document Migration ToolUpgrade and migrate ExFlow data
Load and Validate XMLCreate a new File Import Setup
Migrate DocumentsRead, import and migrate documents
Clean Incoming Documents:Clear all migrated documents if a new import is needed

General
File Import Setup Code:Enter the File Import Setup Code
Name Field ValueSpecify the name format to use. Following options are available:
Upgrade and migrate ExFlow data

Status
Migration Status:Status of migration
Document CountNumber of documents to migrate into matching company name
Matched CountNumber of documents matched in current company, click for list of documents that did not match
Migrated DocumentsNumber of documents migrated into matching company name
Failed DocumentsDocuments that failed to migrate, click for list and reason
Existing DocumentsNumber of documents already migrated

Options
Batch Size:Set to a non-zero value to at-most import that many documents at one time

Fileformat
File formatShows the needed import XML adhered structure

To continue with the migration example, click on Load and Validate XML to choose file.

Upgrade and migrate ExFlow data

Choose file ''Document Migration XML document*.xml'' in azurefileshare image folder ''exflow''.

Upgrade and migrate ExFlow data

Then migration status will be set to ''Validated''.

Upgrade and migrate ExFlow data

Choose tab ''Migrate Document'' and wait until Migrate Status will be set to: ''Migrated''.

Upgrade and migrate ExFlow data

Done with migration.

Validate that all PDF images are attached to the purchase documents.