Unlabeled jar and closed folder. Type: entirely AI-generated. Origin: image model.
All solutions45 / Quality & lots

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.

Process diagram

  • 10Nodes
  • 12Connections
  • 03Phases
Environment

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

Source01

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

Process node 01Source

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.

Interfaces
  • Microsoft Graph API
  • SharePoint API
Next steps
Data02

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

Process node 02Data

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.

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

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

Process node 03Action

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.

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

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

Process node 04Decision

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.

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

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

Process node 05Approval

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.

Interfaces
  • Teams Adaptive Cards
  • Power Apps
Next steps
System06

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

Process node 06System

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.

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

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

Process node 07Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Next steps
Result08

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

Process node 08Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Result09

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

Process node 09Result

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.

Interfaces
  • Power BI API
  • Teams Webhook
Result10

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

Process node 10Result

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.

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

Starting point

The certificate of analysis sits in the archive, while the lot status in the ERP decides whether the lot may be used further. Quality retypes lot, item and values and compares them with the specification. A status without that check can release a lot even though a value is missing or outside the stored specification. Without a link to the certificate, it is later unclear which document set the status.

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.

DiscoverBack to top