Migrating a Lotus Notes Database to Shareflex QMS via SQL and PNP PowerShell

Lotus Notes to Shareflex QMS, via SQL using PNP Powershell

This blog post shows how to migrate Lotus Notes database content to its final destination: a SharePoint Shareflex application (in this example, Shareflex QMS). Your Notes database and Shareflex setup will differ, so some adjustments are required, but this guide will get you started.

Lift and shift the IBM Notes content to SQL

For this blog post, we created a small proof-of-concept (PoC) Lotus Notes application to hold the sample data. The app is not from a real customer project, but specifically built to demonstrate the migration approach in a clear and controlled way. The screenshots below show the structure and example content used in this PoC.

First, the Notes database is migrated to SQL using the Lialis LNExtract tool. LNExtract performs a lift-and-shift migration of the Notes content to SQL, including all documents, all fields, and all rich text content. After the initial migration, daily changes in the Notes database can also be migrated automatically to SQL, keeping SQL in sync with Notes during the transition period.

Transform SQL content into Shareflex QMS documents

Once the Notes content is available in SQL, the next step becomes much easier. From SQL, the data can be migrated into the Shareflex QMS structure on SharePoint Online.

The images below show the Notes document above after it was migrated to Shareflex QMS.

Azure AD application

Before we can run the PnP PowerShell migration, we first need to register an Azure AD application for authentication. This app is used by the script to securely connect to SharePoint Online and perform the migration without using interactive user credentials.

In this example, we create the app using PnP PowerShell:

PnP PowerShell script we used

The script connects to the SQL table, reads the first entry, exports the attachments from MIME using MimeKit, and creates the items in SharePoint so they are presented properly in the Shareflex interface.

Conclusion

Migrating from Lotus Notes to Shareflex QMS does not have to be overly complex. By first moving the Notes database to SQL with Lialis LNExtract, including daily delta updates, a stable foundation is created. From there, PnP PowerShell can be used to load the documents and attachments into Shareflex QMS with the right metadata and structure. This approach combines the safety of a lift-and-shift extraction with the flexibility to reshape the content for a modern SharePoint-based quality management solution.