Starting point

Sales & order intake
Turn incoming EDI orders into ERP sales orders
A fully transferred EDI order is compared with the customer, the item and the stored price. If the file matches clearly, a sales order is created in the company's own ERP; unknown numbers and price differences stay an open case and are not created silently.
Process architecture
From an EDI file to an order in the company's own ERP.
The chain starts when an order file has been fully transferred on the agreed path. Customer, item and price are read before an order is created. Clear files are written by the ERP; everything else stays open and is not guessed from an incomplete file.
01Input
File & master data
A fully transferred order file is detected and enriched with the customer, the item and the stored price.
2 Steps
02Process
Comparison & decision
Lines are checked against the master data. Unknown numbers and price differences are decided by sales.
4 Steps
03Output
Order & evidence
The order or the open case is in the ERP, sales sees the same status and the file remains findable.
4 Steps
Source01Take in the order file
SFTP accepts only files whose transfer is complete and opens a case for each file with its name and interchange reference.Details
Take in the order file
SFTP accepts only files whose transfer is complete and opens a case for each file with its name and interchange reference.
- Microsoft Graph API
- SharePoint API
- Load master data and price
Data02Load master data and price
Odoo External API reads the customer, the item and the stored price. An unknown key is not silently matched to a similar record.Details
Load master data and price
Odoo External API reads the customer, the item and the stored price. An unknown key is not silently matched to a similar record.
- Azure AI Document Intelligence
- Mistral OCR
- Dataverse API
- Read the purchase order
Action03Read the purchase order
EDIFACT reads the buyer, lines, quantities, requested date and prices. Missing required details are flagged rather than filled in.Details
Read the purchase order
EDIFACT reads the buyer, lines, quantities, requested date and prices. Missing required details are flagged rather than filled in.
- Power Automate
- Azure Functions
- Microsoft Graph API
- Check lines against master data
- Decide the mismatchDetails missing
Decision04Check lines against master data
n8n checks that customer, item and price match the stored terms. An unknown number or a different price holds the whole file.Details
Check lines against master data
n8n checks that customer, item and price match the stored terms. An unknown number or a different price holds the whole file.
- Azure OpenAI GPT
- Anthropic Claude
- AI Builder
- Write the ERP orderMaster data matches
- Decide the mismatchReview needed
Approval05Decide the mismatch
n8n presents the file and the mismatched line to sales. A person releases, holds or asks for clarification; silence is not an order.Details
Decide the mismatch
n8n presents the file and the mismatched line to sales. A person releases, holds or asks for clarification; silence is not an order.
- Teams Adaptive Cards
- Power Apps
- Write the ERP order
- Flag the open caseHeld
System06Write the ERP order
Odoo External API creates only the confirmed sales order. The same interchange reference does not create a second order.Details
Write the ERP order
Odoo External API creates only the confirmed sales order. The same interchange reference does not create a second order.
- Dynamics 365 API
- Azure Service Bus
- Show order or hold
Result07Show order or hold
Sales and dispatch see in the ERP whether the file became an order or the case stays open. The status is not proof of delivery.Details
Show order or hold
Sales and dispatch see in the ERP whether the file became an order or the case stays open. The status is not proof of delivery.
- Power BI API
- Teams Webhook
- Inform sales
- File the source document
Result08Inform sales
Odoo External API files the reply as an activity on the customer. It names the file and the order, not the full file contents.Details
Inform sales
Odoo External API files the reply as an activity on the customer. It names the file and the order, not the full file contents.
- Power BI API
- Teams Webhook
Result09File the source document
Nextcloud WebDAV stores the order file in the restricted library and keeps its link to the order or the open case.Details
File the source document
Nextcloud WebDAV stores the order file in the restricted library and keeps its link to the order or the open case.
- Power BI API
- Teams Webhook
Result10Flag the open case
A file without a clear match or without a decision stays open with a named owner. It does not appear as an order.Details
Flag the open case
A file without a clear match or without a decision stays open with a named owner. It does not appear as an order.
- Power BI API
- Teams Webhook
- File the source document
System landscape
The company's own ERP remains authoritative for the order.
- Microsoft
Microsoft Graph API
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
SharePoint API
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Azure AI Document Intelligence
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Mistral OCR
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Dataverse API
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Power Automate
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Azure Functions
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Azure OpenAI GPT
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Anthropic Claude
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
AI Builder
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Teams Adaptive Cards
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Power Apps
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Dynamics 365 API
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Azure Service Bus
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Power BI API
Möglicher Baustein für die Microsoft-Systemvariante.
- Microsoft
Teams Webhook
Möglicher Baustein für die Microsoft-Systemvariante.
- Interfaces in use
SFTP
Accepts the order file only after the transfer is complete and keeps the file name and interchange reference.
- Interfaces in use
EDIFACT
Reads buyer, lines, quantities, requested date and prices without filling in missing required details.
- Interfaces in use
Odoo External API
Reads customer, item and price and creates only the confirmed sales order.
- Interfaces in use
n8n
Runs the comparison and presents mismatched files to sales for a decision.
- Interfaces in use
Nextcloud WebDAV
Stores the order file in the restricted library, linked to the order or the open case.
- Possible apps & platforms
Odoo
Customers, items, prices and orders remain the authoritative records.
- Possible apps & platforms
Nextcloud
Authorized roles find the filed order document for the sales order.
Implementation in context
An order file becomes a sales order or an open case.
This workflow starts when an EDI purchase order has been fully transferred on the agreed path, not when a quote arrives by email, a supplier confirms one of our orders or stock falls below a reorder point. Odoo remains authoritative for customer, item, price and sales order. A created order means the file matched the master data. It does not prove that goods have been picked or shipped.
The check covers buyer, item, quantity, requested date and price against the stored master data. An unknown number, a different price or an incomplete file holds the whole file. A missing reply, a half-written file or a repeat of the same interchange reference does not create another order.
Order files can include delivery addresses and contact names. Sales sees the decision with the file reference, not every raw segment beyond what the match needs. In the assumed environment, file transfer, ERP, orchestration and storage stay on the company's network. Access is limited to the responsible roles, and retention of the files is agreed with the business.
File name and interchange reference link the file that was read to the order that was written. Writing goes through the ERP interface, not into its database. If the ERP is temporarily unavailable, the case stays in the queue instead of appearing as an order. Repeated runs do not create a second document for the same reference.
Target picture
Every fully transferred EDI order has a documented check. Clear files become sales orders, mismatches stay open until sales decides, and the same file does not create a second order.
Expected benefits
- Sales and dispatch can see whether the file became an order.
- Unknown items and different prices are not created as orders without a decision.
- The same interchange reference does not create a second order.
- A file that has not finished transferring is not read.
- The source file remains findable with the order or the open case.
Prerequisites to start
- 01Odoo maintains customers, items, prices and orders and exposes a documented interface for them.
- 02SFTP exchange is in place with a transfer marker, a test account and a technical user.
- 03Sales agrees which price difference opens a case and that unknown numbers are not guessed.
- 04n8n and Nextcloud are reachable on the company network, including a path to the ERP without an inbound port.
- 05A named sales owner, including a substitute, decides mismatched files.
- 06Test cases cover a clear file, an unknown item number, a different price and a repeated reference.
Your next step
Which process costs your team unnecessary time every day?
Give us a short outline. We will tell you honestly where automation is useful—and where it is not.





