Unlabeled carton and closed folder. Type: entirely AI-generated. Origin: GPT Image 2.6 Flare.
All solutions42 / Sales & order intake

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.

Process diagram

  • 10Nodes
  • 12Connections
  • 03Phases
Environment

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

Source01

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.Details

Process node 01Source

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.

Interfaces
  • Microsoft Graph API
  • SharePoint API
Next steps
Data02

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.Details

Process node 02Data

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.

Interfaces
  • Azure AI Document Intelligence
  • Mistral OCR
  • Dataverse API
Next steps
Action03

Read the purchase order

EDIFACT reads the buyer, lines, quantities, requested date and prices. Missing required details are flagged rather than filled in.Details

Process node 03Action

Read the purchase order

EDIFACT reads the buyer, lines, quantities, requested date and prices. Missing required details are flagged rather than filled in.

Interfaces
  • Power Automate
  • Azure Functions
  • Microsoft Graph API
Next steps
Decision04

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.Details

Process node 04Decision

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.

Interfaces
  • Azure OpenAI GPT
  • Anthropic Claude
  • AI Builder
Next steps
Approval05

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.Details

Process node 05Approval

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.

Interfaces
  • Teams Adaptive Cards
  • Power Apps
Next steps
System06

Write the ERP order

Odoo External API creates only the confirmed sales order. The same interchange reference does not create a second order.Details

Process node 06System

Write the ERP order

Odoo External API creates only the confirmed sales order. The same interchange reference does not create a second order.

Interfaces
  • Dynamics 365 API
  • Azure Service Bus
Next steps
Result07

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.Details

Process node 07Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Next steps
Result08

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.Details

Process node 08Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Result09

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.Details

Process node 09Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Result10

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.Details

Process node 10Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Next steps
  • Standard path
  • Direct path
  • Review required
  • Exception
  • Return

Steps in execution order

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.

Starting point

Large buyers send purchase orders as EDI files, while the sales order has to be created in the company's own ERP. Inside sales retypes buyer, lines and prices and compares them with the master data. A file with an unknown item number or a different price can still become an order even though the stored terms do not match. Without a link to the file, it is later unclear which version was posted.

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.

DiscoverBack to top