Skip to main content

AGR Order data sent to Business Central — field reference

Reference of the fields AGR sends to Business Central via the AGR Data Integrator (Order Header and Order Lines).

This information applies to Microsoft Dynamics Business Central versions 17+ and Business Central Public Cloud, integrated with AGR through the AGR Data Integrator.

Overview

When AGR sends an order to Business Central, the AGR Data Integrator receives it through two REST endpoints exposed by the extension:

  • AGR API Order Header — one record per AGR order, containing the order-level information.

  • AGR API Order Lines — one record per item line on the order, linked back to the header through agr_order_id.

This article documents every field that AGR can populate on those two entities, so you can confirm what data is delivered into BC and use it in your downstream processes (Purchase Orders, Transfer Orders, Production Orders, Assembly Orders, or the Requisition Worksheet).

AGR API Order Header

Source entity in BC: ori AGR API Order Header. One row per AGR order.

Field

Description

agr_order_id

Unique AGR order identifier. Used to link header to lines.

order_type

Order type as received from AGR: Purchase, Transfer, Production, or Assembly.

order_from_location_no

Origin location or vendor number.

order_to_location_no

Destination location number.

est_deliv_date

Estimated delivery date.

OrderNo

BC order number created from this AGR order.

OrderType

BC order type created (Purchase Order, Transfer Order, etc.).

PostedOrderNo

BC posted document number (populated after posting).

PostingDate

Date the order was posted in BC.

SentFromAGR

Flag indicating the order was sent from AGR.

Processed

Flag indicating the order has been processed into BC.

LinesImported

Flag indicating the order lines have been imported.

StatusUpdated

Flag indicating status has been updated back to AGR.

SkipProcessing

Flag to skip processing for this order.

Error

Whether the order has an error.

ErrorMessage

Error description.

ErrorType

Type of BC error.

SystemCreatedAt

Timestamp when the record was created.

SystemModifiedAt

Timestamp when the record was last modified.

SystemCreatedBy

User who created the record.

SystemModifiedBy

User who last modified the record.

AGR API Order Lines

Source entity in BC: ori AGR API Order Lines. One row per line on the order. Lines are linked to the header through agr_order_id.

Field

Description

agr_order_id

AGR order identifier (link to the header).

agr_order_line

Line number within the AGR order.

item_no

BC item number to be ordered.

variantCode

Item variant code.

qty

Quantity to order.

order_to_location_no

Destination location for this line.

color

Color attribute (AGR-specific).

size

Size attribute (AGR-specific).

style

Style attribute (AGR-specific).

FoundBaseUOM

Base unit of measure resolved in BC.

FoundPurchUOM

Purchase unit of measure resolved in BC.

ProdOrderNo

BC production or assembly order number created for this line.

PlanningRefOrderNo

Planning reference order number (Requisition Worksheet).

HeaderId

Internal header reference.

Error

Whether this line has an error.

ErrorMessage

Error description for this line.

SystemCreatedAt

Timestamp when the record was created.

SystemModifiedAt

Timestamp when the record was last modified.

SystemCreatedBy

User who created the record.

SystemModifiedBy

User who last modified the record.

Did this answer your question?