Table

DirOrgPersonRelations

Person relations

Links contact persons to other records, such as leads, opportunities and quotation competitor groups. The key combines the referenced table ID, the referenced record ID and the contact ID. It also points to a party relationship.

Table name
DirOrgPersonRelations
Module
Global address book
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
EntityContactIdx
Key fields
EntityRefTableId, EntityRefRecId, ContactPersonId
Model
Foundation

Fields (10)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
EntityRefTableIdID of the table that holds the linked record.Integer
RefTableId
YesNone
EntityRefRecIdSystem record ID of the record the contact is linked to, for example a lead.Int64
RefRecId
YesNone
ContactPersonIdID of the contact person. It points to ContactPerson.String (20)
ContactPersonId
YesContactPerson.ContactPersonIdNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
RelationsRefRecIdSystem record ID of the party relationship. It points to DirPartyRelationship.Int64
RefRecId
YesDirPartyRelationship.RecIdNone
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (2)

Relations (5)

Each relation joins DirOrgPersonRelations to another table on the fields shown.

  • ContactPerson → ContactPerson

    Join on ContactPersonId = ContactPerson.ContactPersonId

    Many DirOrgPersonRelations records → exactly one ContactPerson record

  • DirPartyRelationship → DirPartyRelationship

    Join on RelationsRefRecId = DirPartyRelationship.RecId

    Many DirOrgPersonRelations records → exactly one DirPartyRelationship record

  • smmLeadTable → smmLeadTable

    Join on EntityRefTableId = smmLeadTable.TableId, EntityRefRecId = smmLeadTable.RecId

    Many DirOrgPersonRelations records → zero or one smmLeadTable record

  • smmOpportunityTable → smmOpportunityTable

    Join on EntityRefTableId = smmOpportunityTable.TableId, EntityRefRecId = smmOpportunityTable.RecId

    Many DirOrgPersonRelations records → zero or one smmOpportunityTable record

  • smmQuotationCompetitorGroup → smmQuotationCompetitorGroup

    Join on EntityRefTableId = smmQuotationCompetitorGroup.TableId, EntityRefRecId = smmQuotationCompetitorGroup.RecId

    Many DirOrgPersonRelations records → zero or one smmQuotationCompetitorGroup record

Get this data out

No public entity reads from DirOrgPersonRelations. Its data is only reachable through the application, a custom entity or a database export.

Need help with DirOrgPersonRelations in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk