Starting point

Quality & lots
Set the lot status from a certificate of analysis
An incoming certificate of analysis is compared with the lot, the item and the stored specification. If the document matches clearly, the lot status is set; missing details and values outside the specification stay a decision for quality. The status is not a release beyond the agreed checks.
Process architecture
From a certificate of analysis to the lot status in the company's own ERP.
The chain starts when a certificate is in the archive. The lot and the specification are read before the status changes. Clear cases are written by the ERP; everything else stays blocked. An unavailable system does not release the lot.
01Input
Certificate & lot
A new certificate of analysis is detected and enriched with the lot, the item and the stored specification.
2 Steps
02Process
Comparison & decision
The values are compared with the specification. Missing details and mismatches are decided by quality.
4 Steps
03Output
Status & evidence
Release or block is on the lot, quality sees the same status and the certificate stays linked.
4 Steps
Source01Take in the certificate event
A Webhook reports that a certificate of analysis is in the archive and opens a case for each document with its id and lot.Details
Take in the certificate event
A Webhook reports that a certificate of analysis is in the archive and opens a case for each document with its id and lot.
- Microsoft Graph API
- SharePoint API
- Read the certificate fields
Data02Read the certificate fields
DocuWare REST API reads the lot, the item and the indexed test values. Missing required fields are flagged rather than filled in.Details
Read the certificate fields
DocuWare REST API reads the lot, the item and the indexed test values. Missing required fields are flagged rather than filled in.
- Azure AI Document Intelligence
- Mistral OCR
- Dataverse API
- Load lot and specification
Action03Load lot and specification
REST API reads the open lot, the item and the stored specification. An unknown lot is not matched to a similar number.Details
Load lot and specification
REST API reads the open lot, the item and the stored specification. An unknown lot is not matched to a similar number.
- Power Automate
- Azure Functions
- Microsoft Graph API
- Set values against the specification
- Decide the mismatchDetails missing
Decision04Set values against the specification
n8n sets the values that were read against the stored specification. A value outside the specification or another item holds the lot.Details
Set values against the specification
n8n sets the values that were read against the stored specification. A value outside the specification or another item holds the lot.
- Azure OpenAI GPT
- Anthropic Claude
- AI Builder
- Write the lot statusCertificate matches
- Decide the mismatchMismatch open
Approval05Decide the mismatch
n8n presents the certificate, the lot and the mismatch to quality. A person releases, keeps the block or asks for another document; silence is not a release.Details
Decide the mismatch
n8n presents the certificate, the lot and the mismatch to quality. A person releases, keeps the block or asks for another document; silence is not a release.
- Teams Adaptive Cards
- Power Apps
- Write the lot status
- Flag the open lotBlocked
System06Write the lot status
REST API writes only the confirmed status. If the ERP is unavailable, the message waits in RabbitMQ and the lot stays blocked. The same document id does not set the status a second time.Details
Write the lot status
REST API writes only the confirmed status. If the ERP is unavailable, the message waits in RabbitMQ and the lot stays blocked. The same document id does not set the status a second time.
- Dynamics 365 API
- Azure Service Bus
- Show release or block
Result07Show release or block
Production and quality see in the ERP whether the lot is released or blocked. The status records the check and does not prove that goods have already shipped.Details
Show release or block
Production and quality see in the ERP whether the lot is released or blocked. The status records the check and does not prove that goods have already shipped.
- Power BI API
- Teams Webhook
- Notify quality
- Note the decision on the document
Result08Notify quality
n8n files the reply as a task on the lot. It names the document and the status, not every raw value beyond the check.Details
Notify quality
n8n files the reply as a task on the lot. It names the document and the status, not every raw value beyond the check.
- Power BI API
- Teams Webhook
Result09Note the decision on the document
DocuWare REST API writes the decided status as an index on the same certificate. Blocked cases keep the same lot reference.Details
Note the decision on the document
DocuWare REST API writes the decided status as an index on the same certificate. Blocked cases keep the same lot reference.
- Power BI API
- Teams Webhook
Result10Flag the open lot
A lot without a clear certificate or without a decision stays blocked with a named owner. It does not appear as released.Details
Flag the open lot
A lot without a clear certificate or without a decision stays blocked with a named owner. It does not appear as released.
- Power BI API
- Teams Webhook
- Note the decision on the document
System landscape
The company's own ERP remains authoritative for the lot status.
- 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
Webhook
Reports a newly filed certificate of analysis instead of polling the archive.
- Interfaces in use
DocuWare REST API
Reads the indexed test values and writes the decided status back to the same document.
- Interfaces in use
REST API
Reads the lot and specification and writes only the confirmed status, not directly into the database.
- Interfaces in use
n8n
Compares the values and presents mismatches to quality for a decision.
- Interfaces in use
RabbitMQ
Holds the message while the ERP is unavailable, without releasing the lot.
- Possible apps & platforms
DocuWare
Certificates and the noted status remain findable in the restricted archive.
Implementation in context
A certificate sets the status or leaves the lot blocked.
This workflow starts when a certificate of analysis for an open lot is in the archive, not at goods receipt, at a machine fault or during a stock count. The ERP remains authoritative for lot, item, specification and status. A set status means the agreed checks were met. It does not mean the goods have already shipped or that every possible use is allowed.
The check covers document id, lot, item and the indexed values against the stored specification. An unknown lot, another item, a missing required field or a value outside the specification keeps the lot blocked. A missing reply, a repeated event for the same document id or an unavailable ERP does not become a release.
Certificates can include the names of people who performed the test. Production sees the decided status with the lot reference, not every raw value beyond the check. In the assumed environment, archive, ERP, orchestration and queue stay on the company's network. Access is limited to the responsible roles, and retention of the certificates is agreed with the business.
Document id and lot link the document that was read to the status that was written. Writing goes through the ERP interface, not into its database. Repeated events do not create a second status change for the same id. If the ERP is down, the message waits in the queue and the lot stays visibly blocked.
Target picture
Every incoming certificate of analysis has a documented check. Clear cases set the lot status, mismatches stay blocked until quality decides, and the same document id does not set the status a second time.
Expected benefits
- Production and quality can see on the lot whether the certificate was checked.
- Values outside the stored specification do not release the lot without a decision.
- The same document id does not set the status a second time.
- An unavailable ERP leaves the lot blocked.
- The certificate remains findable with the decided status.
Prerequisites to start
- 01The ERP maintains open lots, items and a specification and exposes a documented interface for them.
- 02DocuWare indexes lot, item and the values needed for the check and reports new certificates through a webhook.
- 03Quality agrees which fields are required and that values outside the specification need a decision.
- 04n8n and RabbitMQ are reachable on the company network, including a path to the ERP without an inbound port.
- 05A named quality owner, including a substitute, decides mismatches.
- 06Test cases cover a matching certificate, an unknown lot, a value outside the specification and a repeated event.
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.






