Data entity
DirPartyRelationshipEntity
Holds relationships between two parties in the global address book. Each row has a relationship type, a parent party and a child party, with effective and expiration dates. The key also includes the legal entity data area.
- Entity name
DirPartyRelationshipEntity- Public entity name
PartyRelationship- OData collection
PartyRelationships- Category
Not set- Module
GAB- Read-only
No- Data management enabled
Yes- Configuration key
None- Keys
RelationshipType, ParentPartyId, ChildPartyId, LegalEntityDataArea, ValidTo, ValidFrom- Staging table
DirPartyRelationshipStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/PartyRelationships- Dataverse virtual table
mserp_dirpartyrelationshipentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Enabled: you can use it in import and export projects.
Data sources
DirPartyRelationship· rootDirRelationshipTypeTable· InnerJoin toDirPartyRelationshipDirPartyTable· InnerJoin toDirPartyRelationship· read-onlyDirOrganizationBase· Derived toDirPartyTableOMInternalOrganization· Derived toDirOrganizationBaseOMOperatingUnit· Derived toOMInternalOrganizationOMTeam· Derived toOMInternalOrganizationCompanyInfo· Derived toOMInternalOrganizationDirOrganization· Derived toDirOrganizationBaseDirPerson· Derived toDirPartyTableDirPartyTableParent(tableDirPartyTable) · OuterJoin toDirPartyRelationship· read-onlyDirOrganizationBase1(tableDirOrganizationBase) · Derived toDirPartyTableParentDirOrganization1(tableDirOrganization) · Derived toDirOrganizationBase1OMInternalOrganization1(tableOMInternalOrganization) · Derived toDirOrganizationBase1CompanyInfo1(tableCompanyInfo) · Derived toOMInternalOrganization1OMOperatingUnit1(tableOMOperatingUnit) · Derived toOMInternalOrganization1OMTeam1(tableOMTeam) · Derived toOMInternalOrganization1DirPerson1(tableDirPerson) · Derived toDirPartyTableParent
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
LegalEntityDataAreaCompany (data area) the relationship applies to. | String (6)DirDataAreaId | No | Yes | DirPartyRelationship.LegalEntityDataAreaId | |
RelationshipTypeUnique ID of the relationship type. | String (20)DirRelationshipTypeId | Yes | Yes | DirRelationshipTypeTable.RelationshipTypeId | |
ValidFromDate and time from which the relationship is effective. | UtcDateTimeEffectiveDateTime | No | Yes | DirPartyRelationship.ValidFrom | |
ValidToDate and time when the relationship expires. | UtcDateTimeExpirationDateTime | No | Yes | DirPartyRelationship.ValidTo | |
ChildPartyIdUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | Yes | Yes | DirPartyTable.PartyNumber | |
ChildPartyThe child party in the relationship. | Int64DirPartyRecId | Yes | No (private) | DirPartyTable.RecId | DirPartyRelationship.ChildParty |
ParentPartyThe parent party in the relationship. | Int64DirPartyRecId | No | No (private) | DirPartyTable.RecId | DirPartyRelationship.ParentParty |
NullableParentPartyIdUnique ID of the party. It is the key of the table. | String (40)DirPartyNumber | No | No (private) | DirPartyTable.PartyNumber | |
ParentPartyIdThe party number of the parent party in the relationship. | String (40)DirPartyNumber | No | Yes | computed | |
SystemTypeSystem relationship type, such as contact, subsidiary, spouse or partner. | Enum
| No | Yes | DirRelationshipTypeTable.SystemType |
Foreign keys (2)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
ChildParty→DirPartyTable.RecId(key of DirPartyTable)Many DirPartyRelationship records → exactly one DirPartyTable record
DirPartyTable details: see CustFoundationEntity, smmContactPersonV2Entity, CustCustomerV3Entity
ParentParty→DirPartyTable.RecId(key of DirPartyTable)Many DirPartyRelationship records → exactly one DirPartyTable record
DirPartyTable details: see CustFoundationEntity, smmContactPersonV2Entity, CustCustomerV3Entity
Need help with DirPartyRelationshipEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.