s4

A Practical Method for Integrating External Systems With Acumatica Using Import by Scenarios

Acumatica provides flexible and powerful tools for integrating external applications. One of the most efficient approaches is to combine automated data preparation on the source system with Acumatica’s native Import by Scenario (SM206036) and Automation Schedules (SM205020). This method allows businesses to bring external data into Acumatica without hardcode and easier to maintain.

Below is an overview of the sample architecture and a real example implemented by S4 Consulting for a client (daily getting the Sales data from Loyverse POS to Acumatica):

Architecture diagram illustrating an Acumatica Integration workflow using Import Scenarios, including API extraction, Python data preparation, file synchronization, and automation schedules.
Sample architecture for Acumatica Integration using Import Scenarios Python based data preparation File Synchronization and Automation Schedules This approach enables seamless and automated data flow from external systems into Acumatica

LOYVERSE API

    → Python script processes the data and exports an Excel file

        → Windows Task Scheduler runs the script daily

            → File is placed into a shared folder

                → Acumatica File Synchronization retrieves the file

                    → Automation Schedule executes the Import Scenario

                        → Kit Assembly documents are created in Acumatica

                            → (Optional) Business Event sends an email report

1. Extracting and Preparing Data From External Systems

The integration begins with a Python script that connects to the Loyverse POS Web API to retrieve daily sales transactions. This script standardizes the raw data – calculations, formatting, SKU mapping, warehouse logic, date conversion – and transforms the dataset into a structure that matches Acumatica’s Import Scenario requirements.

Data preparation workflow showing Loyverse API extraction, Python script processing, and Excel file generation for Acumatica Integration.
Automated workflow where data is retrieved from the Loyverse API processed via Python and exported into an Excel file structured for Acumatica Import Scenarios

Key steps include:

  • Calling Loyverse API using secure access tokens
  • Extracting sales, item details, pricing, taxes, and revenue breakdown
  • Converting and normalizing data according to Acumatica fields
  • Sorting data in a consistent order for predictable processing
  • Exporting the dataset into Excel format compatible with Acumatica (suggest using xlsxwriter)

The script is hosted on any small pc/virtual machine, ensuring stability, centralized control, and enterprise-grade security.

2. Automating the Data Preparation Process

To make the integration fully automated, the data extraction script is scheduled to run at fixed intervals, typically daily. Common tools include Task Scheduler on Windows or Cron on Linux.

Windows Task Scheduler interface demonstrating automated execution of a Python data preparation script used in Acumatica Integration.
Windows Task Scheduler automates the daily execution of the Python script that prepares external system data for Acumatica

The script performs tasks such as:

  • Fetching new data
  • Generating the import file
  • Creating backup versions for audit purposes
  • Saving the file in a monitored directory

This ensures that the latest data is always ready for Acumatica.

Shared network folder used for storing automatically generated import files that Acumatica retrieves during integration.
A shared directory where the system deposits prepared import files before Acumaticas File Synchronization picks them up

3. Bringing the File Into Acumatica With File Synchronization

Acumatica’s File Maintenance (SM202510) and File Synchronization (SM202530) are then used to automatically pick up the generated file from the shared folder.

Acumatica File Synchronization screen showing automated retrieval of external files for Acumatica Integration workflows.
Acumaticas File Synchronization automatically detects new files from a shared folder and imports them into the file repository for further processing

Key capabilities include:

  • Monitoring a folder for new or updated files
  • Importing file versions directly into Acumatica’s file repository
  • Maintaining a full version history for traceability
  • Triggering only when file names match the configured pattern

This approach removes the need for manual uploads.

Acumatica Import Scenario interface used to process external system data and create transactions automatically.
Import Scenarios in Acumatica transform prepared data into business documents enabling a low code integration method that is easy to maintain

4. Executing the Import Scenario Automatically

Once the file is synchronized, Acumatica’s Automation Schedules execute the import logic.

Two schedules are typically configured:

  • A schedule that processes File Synchronization
  • A schedule that runs the Import Scenario and creates transactions in Acumatica

These schedules can run in sequence within minutes, ensuring data flows into Acumatica without user intervention.

Acumatica Automation Schedule screen demonstrating automated execution of the File Sync and Import Scenario tasks.
Automation Schedules orchestrate the entire Acumatica Integration sequence ensuring external data flows into Acumatica without user intervention

5. Optional: Sending Notifications With Business Events

To keep users informed about the import status, a Business Event can be added. It may send:

  • Summary notifications
  • Error messages
  • Record counts
  • Time of execution

This is helpful for system owners and finance teams who want daily confirmation of successful imports.

Practical Example Implemented by S4 Consulting

S4 Consulting recently delivered a daily automation integration for a client in the F&B sector.

In this project:

  • Sales data was extracted from their POS system using a Python script
  • The script transformed raw transactions into the required structure for Acumatica’s Import Scenario
  • A scheduled task automatically generated the import file each night
  • Acumatica’s File Synchronization collected the updated file
  • The Import Scenario created daily revenue records inside Acumatica
  • A Business Event sent a summary email to the owner upon completion

This solution enabled the client to achieve a fully automated workflow with zero manual intervention, ensuring accuracy, timeliness, and streamlined operations.

Conclusion

This integration method is simple, scalable, and reliable. By combining automated data preparation with Acumatica’s native Import Scenario, File Synchronization, and Automation Schedules, businesses can connect nearly any external application to Acumatica without custom integration middleware.

For organizations looking to automate data flows or connect third-party systems to Acumatica, S4 Consulting can provide guidance, implementation, and optimization based on proven best practices.