Table
smmLeadTable
Leads
Holds sales leads, keyed by LeadId. Each lead has a status, priority, rating, type, source and the workers who opened, own or closed it. It links to a party, which can be a customer or prospect, and to a sales unit and a reason.
- Table name
smmLeadTable- Module
Sales and marketing- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
SmmLead- Primary index
LeadIdx- Replacement key
LeadIdx- Key fields
LeadId- Model
Foundation
Fields (31)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
LeadIdUnique ID of the lead. It is the key of the table. | String (20)smmLeadId | Yes | smmLeadContactPersonCDSEntity | |
ClosedByWorkerWorker who closed the lead. | Int64CrmWorkerRecId | No | HcmWorker.RecId | None |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DateCloseDate on which the lead was closed. | DatesmmLeadDate | No | None | |
DateOpenDate on which the lead was opened. | DatesmmLeadDate | No | None | |
DaysToCloseNumber of days it took to close the lead. | IntegersmmDaysToClose | No | None | |
LeadDescriptionFree-text notes about the lead. | String (-1)smmLeadMemo | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
OpenedByWorkerWorker who opened the lead. | Int64CrmWorkerRecId | No | HcmWorker.RecId | None |
OwnerWorkerWorker who owns the lead. | Int64CrmWorkerRecId | No | HcmWorker.RecId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PartyParty (name) of the lead, linked to the party record. | Int64DirPartyRecId | No | CustTable.PartyDirPartyTable.RecIdsmmBusRelTable.Party | None |
PriorityPriority given to the lead. | String (20)smmLeadPriority | No | smmLeadPriorityTable.Priority | None |
ProcessNameQualifying process used for the lead. | String (20)smmLeadProcess | No | None | |
RatingRating given to the lead. | String (20)smmLeadRating | No | smmLeadRatingTable.Rating | None |
ReasonIdReason code for the lead, taken from the quotation reasons. | String (20)smmQuotationReasonId | No | smmQuotationReasonGroup.ReasonId | None |
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 | |
SalesUnitIdSales unit that handles the lead. | String (20)smmSalesUnitId | No | smmSalesUnit.SalesUnitId | None |
SourceDescriptionComment about the source of the lead. | String (60)smmSourceComment | No | None | |
SourceRefRecIdSystem record ID of the source record. | Int64smmSourceRecId | No | None | |
SourceRefTableIdID of the table that the source record is in. | IntegerRefTableId | No | None | |
SourceTypeIdType of source the lead came from. | String (20)SmmSourceTypeId | No | smmSourceTypeTable.TypeId | None |
StatusStatus of the lead: open, qualified, not qualified or postponed. | EnumsmmLeadStatus (enum) | No | None | |
SubjectSubject of the lead. | String (60)smmSubject | Yes | None | |
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 | |
TypeIdType of the lead. | String (20)smmLeadType | No | smmLeadTypeTable.TypeId | None |
Indexes (4)
LeadIdxPrimary indexReplacement keyUnique, alternate key.
HcmWorkerIdxNot unique.
HcmWorkerIdx1Not unique.
HcmWorkerIdx2Not unique.
Relations (15)
Each relation joins smmLeadTable to another table on the fields shown.
ClosedByWorker→HcmWorkerJoin on
ClosedByWorker = HcmWorker.RecIdMany smmLeadTable records → zero or one HcmWorker record
CustTable→CustTableJoin on
Party = CustTable.PartyMany smmLeadTable records → zero or one CustTable record
DirAddressBookParty→DirAddressBookPartyAllViewJoin on
Party = DirAddressBookPartyAllView.PartyCardinality not set in the metadata.
DirPartyTable_FK→DirPartyTableJoin on
Party = DirPartyTable.RecIdMany smmLeadTable records → zero or one DirPartyTable record
Hierarchy→HierarchyJoin on
ProcessName = Hierarchy.Name,Hierarchy.IsActive = NoYes::Yes,Hierarchy.IsTemplate = NoYes::Yes,Hierarchy.HierarchyType = HierarchyType::LeadCardinality not set in the metadata.
OpenedByWorker→HcmWorkerJoin on
OpenedByWorker = HcmWorker.RecIdMany smmLeadTable records → zero or one HcmWorker record
OwnerWorker→HcmWorkerJoin on
OwnerWorker = HcmWorker.RecIdMany smmLeadTable records → zero or one HcmWorker record
smmBusRelTable→smmBusRelTableJoin on
Party = smmBusRelTable.PartyMany smmLeadTable records → zero or one smmBusRelTable record
smmLeadPriorityTable→smmLeadPriorityTableJoin on
Priority = smmLeadPriorityTable.PriorityMany smmLeadTable records → zero or one smmLeadPriorityTable record
smmLeadRatingTable→smmLeadRatingTableJoin on
Rating = smmLeadRatingTable.RatingMany smmLeadTable records → zero or one smmLeadRatingTable record
smmLeadRelTable→smmLeadRelTableJoin on
LeadId = smmLeadRelTable.LeadIdCardinality not set in the metadata.
smmLeadTypeTable→smmLeadTypeTableJoin on
TypeId = smmLeadTypeTable.TypeIdMany smmLeadTable records → zero or one smmLeadTypeTable record
smmQuotationReasonGroup→smmQuotationReasonGroupJoin on
ReasonId = smmQuotationReasonGroup.ReasonIdMany smmLeadTable records → zero or one smmQuotationReasonGroup record
smmSalesUnit→smmSalesUnitJoin on
SalesUnitId = smmSalesUnit.SalesUnitIdMany smmLeadTable records → zero or one smmSalesUnit record
smmSourceTypeTable→smmSourceTypeTableJoin on
SourceTypeId = smmSourceTypeTable.TypeIdMany smmLeadTable records → zero or one smmSourceTypeTable record
Get this data out
Tables are not exposed directly. These public entities read from smmLeadTable; use one of them in Power BI, Power Platform or a data management project.
smmLeadContactPersonCDSEntity· 1 field from this table
Need help with smmLeadTable in a report, an integration or a migration? Talk to Dr Dynamics.