Table

smmActivityParentLinkTable

Activity parent links

Links an activity to the record it relates to, such as a customer, vendor, sales order, purchase order or case. Each link has a parent type, the target table and record, and a primary link flag.

Table name
smmActivityParentLinkTable
Module
Cross-module and platform
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
None
Primary index
RecId
Replacement key
None
Key fields
None
Model
CaseManagement

Fields (11)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
ActivityNumberNumber of the activity being linked.String (50)
smmActivityNumber
YessmmActivities.ActivityNumberNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
ParentTypeKind of parent record, such as customer, vendor, sales order or case.Enum
smmActivityParentType (enum)
NoDualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 6 more
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PrimaryLinkYes or No flag marking the main link of the activity.Enum
smmActivityPrimaryLink
NoYes (enum)
NoDualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more
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
RefRecIdSystem record ID of the linked parent record.Int64
smmActivityParentRefRecId
NoCaseDetailBase.RecIdContactPerson.RecIdProjTable.RecIdPurchTable.RecIdSMAServiceOrderLine.RecIdSMAServiceOrderTable.RecIdSalesQuotationTable.RecIdSalesTable.RecIdsmmBusRelTable.RecIdsmmCampaignTable.RecIdsmmLeadTable.RecIdsmmOpportunityTable.RecIdsmmTMCallListGroup.RecIdDualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more
RefTableIdID of the table that holds the parent record.Integer
smmActivityParentRefTableId
NoDualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more
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 (3)

Relations (18)

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

  • CaseDetail → CaseDetailBase

    Join on ParentType = smmActivityParentType::Case

    Cardinality not set in the metadata.

  • CaseDetailBase → CaseDetailBase

    Join on RefRecId = CaseDetailBase.RecId

    Many smmActivityParentLinkTable records → zero or one CaseDetailBase record

  • ContactPerson → ContactPerson

    Join on ParentType = smmActivityParentType::ContactPerson, RefRecId = ContactPerson.RecId

    Many smmActivityParentLinkTable records → zero or one ContactPerson record

  • DirPartyTable → DirPartyTable

    Join on RefTableId = DirPartyTable.TableId, RefRecId = DirPartyTable.RecId

    Many smmActivityParentLinkTable records → zero or one DirPartyTable record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber

    Many smmActivityParentLinkTable records → exactly one smmActivities record

  • CustTable → CustTable

    Join on RefTableId = CustTable.TableId, RefRecId = CustTable.RecId

    Many smmActivityParentLinkTable records → zero or one CustTable record

  • ProjTable → ProjTable

    Join on ParentType = smmActivityParentType::Project, RefRecId = ProjTable.RecId

    Many smmActivityParentLinkTable records → zero or one ProjTable record

  • PurchTable → PurchTable

    Join on ParentType = smmActivityParentType::PurchTable, RefRecId = PurchTable.RecId

    Many smmActivityParentLinkTable records → zero or one PurchTable record

  • SalesQuotationTable → SalesQuotationTable

    Join on ParentType = smmActivityParentType::Quotation, RefRecId = SalesQuotationTable.RecId

    Many smmActivityParentLinkTable records → zero or one SalesQuotationTable record

  • SalesTable → SalesTable

    Join on ParentType = smmActivityParentType::SalesTable, RefRecId = SalesTable.RecId

    Many smmActivityParentLinkTable records → zero or one SalesTable record

  • SMAServiceOrderLine → SMAServiceOrderLine

    Join on ParentType = smmActivityParentType::ServiceOrderLine, RefRecId = SMAServiceOrderLine.RecId

    Many smmActivityParentLinkTable records → zero or one SMAServiceOrderLine record

  • SMAServiceOrderTable → SMAServiceOrderTable

    Join on ParentType = smmActivityParentType::ServiceOrder, RefRecId = SMAServiceOrderTable.RecId

    Many smmActivityParentLinkTable records → zero or one SMAServiceOrderTable record

  • smmBusRelTable → smmBusRelTable

    Join on ParentType = smmActivityParentType::BusRel, RefRecId = smmBusRelTable.RecId

    Many smmActivityParentLinkTable records → zero or one smmBusRelTable record

  • smmCampaignTable → smmCampaignTable

    Join on ParentType = smmActivityParentType::Campaign, RefRecId = smmCampaignTable.RecId

    Many smmActivityParentLinkTable records → zero or one smmCampaignTable record

  • smmLeadTable → smmLeadTable

    Join on ParentType = smmActivityParentType::Lead, RefRecId = smmLeadTable.RecId

    Many smmActivityParentLinkTable records → zero or one smmLeadTable record

  • smmOpportunityTable → smmOpportunityTable

    Join on ParentType = smmActivityParentType::Opportunity, RefRecId = smmOpportunityTable.RecId

    Many smmActivityParentLinkTable records → zero or one smmOpportunityTable record

  • smmTMCallListGroup → smmTMCallListGroup

    Join on ParentType = smmActivityParentType::CallList, RefRecId = smmTMCallListGroup.RecId

    Many smmActivityParentLinkTable records → zero or one smmTMCallListGroup record

  • VendTable → VendTable

    Join on RefTableId = VendTable.TableId, RefRecId = VendTable.RecId

    Many smmActivityParentLinkTable records → zero or one VendTable record

Get this data out

Tables are not exposed directly. These public entities read from smmActivityParentLinkTable; use one of them in Power BI, Power Platform or a data management project.

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

Email sales@drdynamics.co.uk