Skip to content
D365 Reference

DirPartyTable

mainShared across companies

The global address book party master — the shared registry behind every customer, vendor, and organization; referenced by RecId, no company partition

Module: Global Address BookNo company partition

Fields

12 fields · 1 key

KeyFieldEDTDescriptionTypeLengthFlags
KeyPartyNumberPartyNumberThe global-address-book party numberstring20
NameParty name — the display name behind customers, vendors, and organizationsstring100
NameAliasSearch alias for the partystring100
RecIdRecIdThe 64-bit surrogate key masters like CustTable.Party join toint64
KnownAsInformal name the party is known asstring
InstanceRelationTypeThe party-type discriminator (labeled "Party type" in the client) — identifies whether the row is a person, organization, or other party subtypeint64
LanguageIdPreferred language of the partystring
PrimaryContactEmailRecIdRecId of the party's primary email record in the electronic-address table — a pointer, not the address text itselfint64
PrimaryContactPhoneRecIdRecId of the party's primary phone record in the electronic-address table — a pointer, not the number itselfint64
PrimaryContactURLRecIdRecId of the party's primary URL record in the electronic-address table — a pointer, not the URL text itselfint64
PrimaryAddressLocationRecIdRecId of the party's primary address location recordint64
AddressBookNamesNames of the address books the party is assigned to, stored as display textstring

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading DirPartyTableon 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  : DirPartyTable The global address book party master — the shared registry behind every customer, vendor, and organization; referenced by RecId, no company partition
-- Purpose: Column-selected read of DirPartyTable — auto-generated from field metadata
-- Grain  : One row per PartyNumber
-- 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
  dp.partynumber AS "The global-address-book party number",
  dp.name AS "Party name — the display name behind customers, vendors, and organizations",
  dp.namealias AS "Search alias for the party",
  dp.recid AS "The 64-bit surrogate key masters like CustTable.Party join to",
  dp.knownas AS "Informal name the party is known as",
  dp.instancerelationtype AS "The party-type discriminator (labeled ""Party type"" in the client) — identifies whether the row is a person, organization, or other party subtype",
  dp.languageid AS "Preferred language of the party",
  dp.primarycontactemail AS "RecId of the party's primary email record in the electronic-address table — a pointer, not the address text itself",
  dp.primarycontactphone AS "RecId of the party's primary phone record in the electronic-address table — a pointer, not the number itself",
  dp.primarycontacturl AS "RecId of the party's primary URL record in the electronic-address table — a pointer, not the URL text itself",
  dp.primaryaddresslocation AS "RecId of the party's primary address location record",
  dp.addressbooknames AS "Names of the address books the party is assigned to, stored as display text"
FROM <catalog>.<schema>.dirpartytable dp
ORDER BY dp.partynumber;

2 parameters not filled: <catalog>, <schema>

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

  • InventBatchDirPartyTableRecId ref · N:1
    ON inventbatch.manufacturerid = dirpartytable.recid
  • CustTableDirPartyTableRecId ref · N:1
    ON custtable.party = dirpartytable.recid
  • VendTableDirPartyTableRecId ref · N:1
    ON vendtable.party = dirpartytable.recid

Data Entities That Expose This Table