Skip to content
D365 Reference

InventJournalTable

worksheet header

Inventory journal header — one row per movement, adjustment, transfer, BOM, or counting journal, with its type, posting status, and line count

Module: InventoryCompany-partitioned (DataAreaId)
Notes

JournalType is an integer enum (movement / inventory adjustment / transfer / BOM / item counting / tag counting …) — integer order not yet primary-source verified, so it renders undecoded.

Header & line

InventJournalTable is the header for its lines in InventJournalTrans.

Fields

16 fields · 1 key

KeyFieldEDTDescriptionTypeLengthFlags
KeyJournalIdInventJournalIdThe journal number — the key its lines join back onstring
JournalNameIdJournal name (setup record) the journal was created from, carrying its defaultsstring
JournalTypeKind of inventory journal — movement, adjustment, transfer, BOM, or countingenum
DescriptionFree-text description of the journalstring
PostedWhether the journal has been posted — unposted journals have no inventory impact yetenum
PostedDateTimeWhen the journal was posted, stored in UTCdatetime
PostedUserIdUser who posted the journalstring
NumOfLinesNumber of lines in the journalint
InventSiteIdInventSiteIdDefault site for the journal's linesstring
InventLocationIdInventLocationIdDefault warehouse for the journal's linesstring
LedgerDimensionRecIdRecId of the offset ledger account (dimension combination) the journal posts againstint64
VoucherDrawWhether vouchers are drawn at journal entry or at postingenum
DeletePostedLinesWhether lines are deleted after postingenum
SystemBlockedWhether the system has locked the journal (for example while posting)enum
JournalIdOrignalInventJournalIdJournal this one was created from, when split or copied (the misspelling is the genuine column name)string
WorkerRecIdRecId of the worker responsible for the journalint64

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading InventJournalTableon Databricks — enums are decoded, 1900-01-01 dates are wrapped to NULL, and the DataAreaId anchor is in place. Set your Unity Catalog location, company, and filter values below; they’re substituted into the SQL and the copy button.

Query parameters
-- ============================================================
-- Table  : InventJournalTable Inventory journal header — one row per movement, adjustment, transfer, BOM, or counting journal, with its type, posting status, and line count
-- Purpose: Column-selected read of InventJournalTable — auto-generated from field metadata
-- Grain  : One row per company (dataareaid) + JournalId
-- Notes  : Auto-generated skeleton for Synapse Link / Fabric Link-landed F&O data (lowercase column names). Enums decoded inline where verified; datetimes stored in UTC; 1900-01-01 dates are sentinels mapped to NULL. System/audit columns omitted — see the quirks guide.
-- ============================================================
SELECT
  i.journalid AS "The journal number — the key its lines join back on",
  i.journalnameid AS "Journal name (setup record) the journal was created from, carrying its defaults",
  i.journaltype AS "Kind of inventory journal — movement, adjustment, transfer, BOM, or counting",  -- enum: decode i.journaltype via GlobalOptionsetMetadata join — see quirks guide #enums
  i.description AS "Free-text description of the journal",
  i.posted AS "Whether the journal has been posted — unposted journals have no inventory impact yet",  -- enum: decode i.posted via GlobalOptionsetMetadata join — see quirks guide #enums
  i.posteddatetime AS "When the journal was posted, stored in UTC",  -- stored in UTC
  i.posteduserid AS "User who posted the journal",
  i.numoflines AS "Number of lines in the journal",
  i.inventsiteid AS "Default site for the journal's lines",
  i.inventlocationid AS "Default warehouse for the journal's lines",
  i.ledgerdimension AS "RecId of the offset ledger account (dimension combination) the journal posts against",
  i.voucherdraw AS "Whether vouchers are drawn at journal entry or at posting",  -- enum: decode i.voucherdraw via GlobalOptionsetMetadata join — see quirks guide #enums
  i.deletepostedlines AS "Whether lines are deleted after posting",  -- enum: decode i.deletepostedlines via GlobalOptionsetMetadata join — see quirks guide #enums
  i.systemblocked AS "Whether the system has locked the journal (for example while posting)",  -- enum: decode i.systemblocked via GlobalOptionsetMetadata join — see quirks guide #enums
  i.journalidorignal AS "Journal this one was created from, when split or copied (the misspelling is the genuine column name)",
  i.worker AS "RecId of the worker responsible for the journal"
FROM <catalog>.<schema>.inventjournaltable i
WHERE
  i.dataareaid = '<company>'
ORDER BY i.journalid;

3 parameters not filled: <catalog>, <schema>, <company>

Relationships

1-hop neighbors — click a table to navigate there. RecId and InventDim edges are highlighted; they’re the joins newcomers most often get wrong.

Join details

  • InventJournalTableInventJournalTransheader line · 1:N
    ON inventjournaltable.journalid = inventjournaltrans.journalid

Data Entities That Expose This Table

No data-entity mappings populated for this table yet.