ERP & IntegrationLow-CodeERP

Automatically Importing Excel Files from Emails into Your ERP

The final 10-20% of T&T data is often the biggest challenge, as it arrives via Excel attachments in emails. This can be automated.

September 4, 2023
3 min read
Automatically import Excel files into the ERP

Just-in-time data exchange across system boundaries is a competitive necessity for transport logistics companies. This is especially true for Track & Trace (T&T) information: the more complex the supply relationships and the more flexible the transport network, the more difficult it becomes to ensure complete T&T data.

The "final 10 to 20 percent" is often the biggest challenge, as this data usually does not arrive via a standardized interface, but rather finds its way into the ERP or TMS as an Excel or text file via email. Often, this results in manual entry by staff: copy and paste is the order of the day.

The Challenge

Every day, various Excel lists containing wagon numbers, container numbers, additional information, and arrival times arrive via email. Operations staff then begrudgingly transfer this data into their IBM i-based Transport Management System—using copy and paste; first Excel, then the green screen, then back to Excel, and so on.

It is logical to consider finding a way to automatically extract these necessary but cumbersome emails and feed the desired information into the IBM i system using the existing EDIfact interface.

The Individual Tasks

What exactly needs to be done—and, more importantly, how?

  1. Detect when a new, relevant Excel file arrives via email.
  2. Convert the Excel file (XLSX) into a processable format (CSV, JSON, etc.).
  3. Select the relevant Excel worksheets and discard the rest.
  4. Clean up T&T data by removing unwanted spaces and similar characters (normalization).
  5. Convert T&T data into individual EDIfact records for the IBM i.
  6. Save EDIfact records into individual text files.
  7. Transfer the text files to the IBM i ERP at the appropriate actual-time-of-arrival (ATA).

The Solution: Workato + Cloudmersive

The "weapon of choice" is the cloud-based low-code automation and integration platform Workato. The platform promises to solve almost any automation task where data needs to be exchanged and adapted between numerous systems.

The trigger for an automation run (job) is the arrival of an email in the operations department's Office 365 inbox, provided it is identified as a relevant email.

Next, the Excel workbook must be converted into a processable format. For this purpose, we use Cloudmersive, a leading cloud service for a wide range of conversions. Its API specification allows it to isolate XLSX worksheets and convert them into CSV.

The Automation Must Account for All Contingencies

The tricky part of this task is the structure of the Excel data and the proprietary Excel format itself. While the contained sheets and data are somewhat homogeneous, a closer look reveals:

  • Variability in spaces within container numbers.
  • Different meanings for order numbers depending on the client.
  • Extra rows and notes added by dispatchers.

T&T status updates should only be sent once their actual-time-of-arrival (ATA) has been reached—even if they arrive ahead of schedule.

Interested in our solutions?

Contact us for a free initial consultation.

Get in Touch

Related articles

Pillar article
System Integration Best PracticesRecommended
ERP & IntegrationLow-CodeERP

System Integration: 7 Best Practices for Success

System integrations often fail due to avoidable mistakes. These 7 best practices will ensure the success of your project.

January 10, 2025
4 min read
Business Automatica Team
A photorealistic outdoor shot shows a businesswoman in the foreground looking at her smartphone while walking in front of an SAP office building in Walldorf. She is wearing a dark blue pantsuit and carrying a black leather bag. The SAP logo is prominently displayed on a large sign on the left and on the glass entrance door on the right. The smartphone display shows a falling stock chart. The environment is modern with concrete paths and bare trees in winter. The lighting is natural daylight.
ERP & IntegrationSAPIndustry

SAP in the Age of AI: Corporate Restructuring Against Software Obsolescence

The rapid development of AI threatens SAP's business model. Instead of static software, dynamic AI agents could take over the work.

March 18, 2026
10 min read
Business Automatica Team
Supplier integration into ordering portal
ERP & IntegrationLow-CodeERP

Efficient Supplier Integration into Your Ordering Portal

Supplier integration made easy. Learn how to use custom webshops to integrate new suppliers seamlessly.

October 8, 2024
3 min read
Business Automatica Team
Units of Measure in Automated Order Capture
ERP & IntegrationERPPraxis

Units of Measure in Automated Order Capture

Efficient order capture through automated conversion of units of measure. Learn how our system seamlessly processes packages, piece counts, and other units.

August 27, 2024
4 min read
Business Automatica Team
MS Dynamics 365 F&O integration with legacy ERP
ERP & IntegrationERPLow-Code

Connecting MS Dynamics F&O with Legacy ERP

How do you migrate from legacy ERP systems like Infor Baan to MS Dynamics 365 F&O—with low risk and zero operational downtime?

September 4, 2023
3 min read
Business Automatica Team
Integrating SAP with low-code
ERP & IntegrationSAPLow-Code

Integrating SAP with Low-Code

How do you solve SAP file transfers in minutes without driving your integration team crazy? With low-code iPaaS.

September 4, 2023
3 min read
Business Automatica Team