D365 Reference
DirPartyTable
mainShared across companiesThe 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
| Key | Field | EDT | Description | Type | Length | Flags |
|---|---|---|---|---|---|---|
| Key | PartyNumber | PartyNumber | The global-address-book party number | string | 20 | |
| Name | Party name — the display name behind customers, vendors, and organizations | string | 100 | |||
| NameAlias | Search alias for the party | string | 100 | |||
| RecId | RecId | The 64-bit surrogate key masters like CustTable.Party join to | int64 | |||
| KnownAs | Informal name the party is known as | string | ||||
| InstanceRelationType | The party-type discriminator (labeled "Party type" in the client) — identifies whether the row is a person, organization, or other party subtype | int64 | ||||
| LanguageId | Preferred language of the party | string | ||||
| PrimaryContactEmail | RecId | RecId of the party's primary email record in the electronic-address table — a pointer, not the address text itself | int64 | |||
| PrimaryContactPhone | RecId | RecId of the party's primary phone record in the electronic-address table — a pointer, not the number itself | int64 | |||
| PrimaryContactURL | RecId | RecId of the party's primary URL record in the electronic-address table — a pointer, not the URL text itself | int64 | |||
| PrimaryAddressLocation | RecId | RecId of the party's primary address location record | int64 | |||
| AddressBookNames | Names of the address books the party is assigned to, stored as display text | string |
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
ON inventbatch.manufacturerid = dirpartytable.recidON custtable.party = dirpartytable.recidON vendtable.party = dirpartytable.recid
Data Entities That Expose This Table
No standard export entity — land the raw table to resolve party names.