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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ActivityNumberNumber of the activity being linked. | String (50)smmActivityNumber | Yes | smmActivities.ActivityNumber | None |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
ParentTypeKind of parent record, such as customer, vendor, sales order or case. | EnumsmmActivityParentType (enum) | No | DualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 6 more | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PrimaryLinkYes or No flag marking the main link of the activity. | EnumsmmActivityPrimaryLinkNoYes (enum) | No | DualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RefRecIdSystem record ID of the linked parent record. | Int64smmActivityParentRefRecId | No | CaseDetailBase.RecIdContactPerson.RecIdProjTable.RecIdPurchTable.RecIdSMAServiceOrderLine.RecIdSMAServiceOrderTable.RecIdSalesQuotationTable.RecIdSalesTable.RecIdsmmBusRelTable.RecIdsmmCampaignTable.RecIdsmmLeadTable.RecIdsmmOpportunityTable.RecIdsmmTMCallListGroup.RecId | DualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more |
RefTableIdID of the table that holds the parent record. | IntegersmmActivityParentRefTableId | No | DualWriteCustomerActivitiesV2EntityDualWritePurchaseOrderActivitiesV2EntityDualWriteSalesOrderActivitiesV2Entityand 5 more | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (3)
ActivityParentIdxNot unique.
RecIdTableIdIdxActivityNumber,RefTableId,ParentType,RefRecIdUnique.
RefRecIdIdxRefRecId,Partition,DataAreaId,ParentType,ActivityNumberNot unique.
Relations (18)
Each relation joins smmActivityParentLinkTable to another table on the fields shown.
CaseDetail→CaseDetailBaseJoin on
ParentType = smmActivityParentType::CaseCardinality not set in the metadata.
CaseDetailBase→CaseDetailBaseJoin on
RefRecId = CaseDetailBase.RecIdMany smmActivityParentLinkTable records → zero or one CaseDetailBase record
ContactPerson→ContactPersonJoin on
ParentType = smmActivityParentType::ContactPerson,RefRecId = ContactPerson.RecIdMany smmActivityParentLinkTable records → zero or one ContactPerson record
DirPartyTable→DirPartyTableJoin on
RefTableId = DirPartyTable.TableId,RefRecId = DirPartyTable.RecIdMany smmActivityParentLinkTable records → zero or one DirPartyTable record
smmActivities→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumberMany smmActivityParentLinkTable records → exactly one smmActivities record
CustTable→CustTableJoin on
RefTableId = CustTable.TableId,RefRecId = CustTable.RecIdMany smmActivityParentLinkTable records → zero or one CustTable record
ProjTable→ProjTableJoin on
ParentType = smmActivityParentType::Project,RefRecId = ProjTable.RecIdMany smmActivityParentLinkTable records → zero or one ProjTable record
PurchTable→PurchTableJoin on
ParentType = smmActivityParentType::PurchTable,RefRecId = PurchTable.RecIdMany smmActivityParentLinkTable records → zero or one PurchTable record
SalesQuotationTable→SalesQuotationTableJoin on
ParentType = smmActivityParentType::Quotation,RefRecId = SalesQuotationTable.RecIdMany smmActivityParentLinkTable records → zero or one SalesQuotationTable record
SalesTable→SalesTableJoin on
ParentType = smmActivityParentType::SalesTable,RefRecId = SalesTable.RecIdMany smmActivityParentLinkTable records → zero or one SalesTable record
SMAServiceOrderLine→SMAServiceOrderLineJoin on
ParentType = smmActivityParentType::ServiceOrderLine,RefRecId = SMAServiceOrderLine.RecIdMany smmActivityParentLinkTable records → zero or one SMAServiceOrderLine record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
ParentType = smmActivityParentType::ServiceOrder,RefRecId = SMAServiceOrderTable.RecIdMany smmActivityParentLinkTable records → zero or one SMAServiceOrderTable record
smmBusRelTable→smmBusRelTableJoin on
ParentType = smmActivityParentType::BusRel,RefRecId = smmBusRelTable.RecIdMany smmActivityParentLinkTable records → zero or one smmBusRelTable record
smmCampaignTable→smmCampaignTableJoin on
ParentType = smmActivityParentType::Campaign,RefRecId = smmCampaignTable.RecIdMany smmActivityParentLinkTable records → zero or one smmCampaignTable record
smmLeadTable→smmLeadTableJoin on
ParentType = smmActivityParentType::Lead,RefRecId = smmLeadTable.RecIdMany smmActivityParentLinkTable records → zero or one smmLeadTable record
smmOpportunityTable→smmOpportunityTableJoin on
ParentType = smmActivityParentType::Opportunity,RefRecId = smmOpportunityTable.RecIdMany smmActivityParentLinkTable records → zero or one smmOpportunityTable record
smmTMCallListGroup→smmTMCallListGroupJoin on
ParentType = smmActivityParentType::CallList,RefRecId = smmTMCallListGroup.RecIdMany smmActivityParentLinkTable records → zero or one smmTMCallListGroup record
VendTable→VendTableJoin on
RefTableId = VendTable.TableId,RefRecId = VendTable.RecIdMany 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.
DualWriteCustomerActivitiesV2Entity· 4 fields from this tableDualWritePurchaseOrderActivitiesV2Entity· 4 fields from this tableDualWriteSalesOrderActivitiesV2Entity· 4 fields from this tableDualWriteVendorActivitiesV2Entity· 4 fields from this tableDualWriteCustomerActivitiesEntity· 4 fields from this tableDualWritePurchaseOrderActivitiesEntity· 4 fields from this tableDualWriteSalesOrderActivitiesEntity· 4 fields from this tableDualWriteSmmActivitiesEntity· 1 field from this tableDualWriteVendorActivitiesEntity· 4 fields from this tableTrvExpMobileActivitiesEntity· 0 fields from this table
Need help with smmActivityParentLinkTable in a report, an integration or a migration? Talk to Dr Dynamics.