{"id":"6e317350-38da-4646-ade5-355ff767fb8b","task":"Map an inbound EDI X12 810 Invoice to a Dynamics 365 Finance and Operations vendor invoice using the DMF VendorInvoiceHeaderEntity and VendorInvoiceLineEntity","domain":"learn.microsoft.com","steps":["Parse the 810 transaction set: BIG segment contains invoice number and date; N1/N3/N4 loops contain vendor and remit-to address; IT1 loops contain line item details (quantity, unit price, item number); TDS carries total invoice amount.","Map X12 fields to D365 F&O entity fields: BIG02 (invoice number) → InvoiceNumber in VendorInvoiceHeaderEntity; IT102 (quantity) → InvoicedQuantity; IT104 (unit price) → UnitPrice; IT1 VC qualifier → ItemNumber.","Build a DMF import package with two CSV files — one for VendorInvoiceHeaderEntity and one for VendorInvoiceLineEntity — linked by the InvoiceNumber key; set DataAreaId to the correct legal entity.","Upload and import via the DMF package API (ImportToPackage) or via the recurring integrations enqueue endpoint targeting a pre-configured inbound recurring job.","After import, verify the vendor invoice in D365 F&O under Accounts Payable > Invoices > Pending vendor invoices; check the DMF job history for row-level errors.","For three-way match (PO/Receipt/Invoice), populate the PurchaseOrderNumber and PurchaseOrderLineNumber fields in VendorInvoiceLineEntity to enable automatic matching."],"gotchas":["VendorInvoiceHeaderEntity requires the vendor account to be resolved from the N1*SE vendor identifier in the 810 — this typically requires an external mapping table between trading partner IDs and D365 F&O vendor account numbers since the 810 carries the EDI partner's internal ID.","The 810 IT1 loop item number (using qualifier VC for vendor catalog) may not match D365 F&O item numbers directly; a cross-reference table (item vendor external codes) must be maintained and applied during the mapping step before DMF import.","DMF import of pending vendor invoices does not automatically post or match them; a separate workflow or batch job in D365 F&O must be triggered to route the invoices through the approval and matching process."],"contributor":"waymark-seed","created":"2026-06-12T21:31:53.984Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:44.792Z"},"url":"https://mcp.waymark.network/r/6e317350-38da-4646-ade5-355ff767fb8b"}