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 descriptionType / EDT / enumMandatoryReferencesIn public entities
LeadIdUnique ID of the lead. It is the key of the table.String (20)
smmLeadId
YessmmLeadContactPersonCDSEntity
ClosedByWorkerWorker who closed the lead.Int64
CrmWorkerRecId
NoHcmWorker.RecIdNone
CreatedByThe user who created the record. System field.String (20)
CreatedBy
NoNone
CreatedDateTimeThe date and time when the record was created. System field.UtcDateTime
CreatedDateTime
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DateCloseDate on which the lead was closed.Date
smmLeadDate
NoNone
DateOpenDate on which the lead was opened.Date
smmLeadDate
NoNone
DaysToCloseNumber of days it took to close the lead.Integer
smmDaysToClose
NoNone
LeadDescriptionFree-text notes about the lead.String (-1)
smmLeadMemo
NoNone
ModifiedByThe user who last changed the record. System field.String (20)
ModifiedBy
NoNone
ModifiedDateTimeThe date and time when the record was last changed. System field.UtcDateTime
ModifiedDateTime
NoNone
OpenedByWorkerWorker who opened the lead.Int64
CrmWorkerRecId
NoHcmWorker.RecIdNone
OwnerWorkerWorker who owns the lead.Int64
CrmWorkerRecId
NoHcmWorker.RecIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyParty (name) of the lead, linked to the party record.Int64
DirPartyRecId
NoCustTable.PartyDirPartyTable.RecIdsmmBusRelTable.PartyNone
PriorityPriority given to the lead.String (20)
smmLeadPriority
NosmmLeadPriorityTable.PriorityNone
ProcessNameQualifying process used for the lead.String (20)
smmLeadProcess
NoNone
RatingRating given to the lead.String (20)
smmLeadRating
NosmmLeadRatingTable.RatingNone
ReasonIdReason code for the lead, taken from the quotation reasons.String (20)
smmQuotationReasonId
NosmmQuotationReasonGroup.ReasonIdNone
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
SalesUnitIdSales unit that handles the lead.String (20)
smmSalesUnitId
NosmmSalesUnit.SalesUnitIdNone
SourceDescriptionComment about the source of the lead.String (60)
smmSourceComment
NoNone
SourceRefRecIdSystem record ID of the source record.Int64
smmSourceRecId
NoNone
SourceRefTableIdID of the table that the source record is in.Integer
RefTableId
NoNone
SourceTypeIdType of source the lead came from.String (20)
SmmSourceTypeId
NosmmSourceTypeTable.TypeIdNone
StatusStatus of the lead: open, qualified, not qualified or postponed.Enum
smmLeadStatus (enum)
NoNone
SubjectSubject of the lead.String (60)
smmSubject
YesNone
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
TypeIdType of the lead.String (20)
smmLeadType
NosmmLeadTypeTable.TypeIdNone

Indexes (4)

Relations (15)

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

  • ClosedByWorker → HcmWorker

    Join on ClosedByWorker = HcmWorker.RecId

    Many smmLeadTable records → zero or one HcmWorker record

  • CustTable → CustTable

    Join on Party = CustTable.Party

    Many smmLeadTable records → zero or one CustTable record

  • DirAddressBookParty → DirAddressBookPartyAllView

    Join on Party = DirAddressBookPartyAllView.Party

    Cardinality not set in the metadata.

  • DirPartyTable_FK → DirPartyTable

    Join on Party = DirPartyTable.RecId

    Many smmLeadTable records → zero or one DirPartyTable record

  • Hierarchy → Hierarchy

    Join on ProcessName = Hierarchy.Name, Hierarchy.IsActive = NoYes::Yes, Hierarchy.IsTemplate = NoYes::Yes, Hierarchy.HierarchyType = HierarchyType::Lead

    Cardinality not set in the metadata.

  • OpenedByWorker → HcmWorker

    Join on OpenedByWorker = HcmWorker.RecId

    Many smmLeadTable records → zero or one HcmWorker record

  • OwnerWorker → HcmWorker

    Join on OwnerWorker = HcmWorker.RecId

    Many smmLeadTable records → zero or one HcmWorker record

  • smmBusRelTable → smmBusRelTable

    Join on Party = smmBusRelTable.Party

    Many smmLeadTable records → zero or one smmBusRelTable record

  • smmLeadPriorityTable → smmLeadPriorityTable

    Join on Priority = smmLeadPriorityTable.Priority

    Many smmLeadTable records → zero or one smmLeadPriorityTable record

  • smmLeadRatingTable → smmLeadRatingTable

    Join on Rating = smmLeadRatingTable.Rating

    Many smmLeadTable records → zero or one smmLeadRatingTable record

  • smmLeadRelTable → smmLeadRelTable

    Join on LeadId = smmLeadRelTable.LeadId

    Cardinality not set in the metadata.

  • smmLeadTypeTable → smmLeadTypeTable

    Join on TypeId = smmLeadTypeTable.TypeId

    Many smmLeadTable records → zero or one smmLeadTypeTable record

  • smmQuotationReasonGroup → smmQuotationReasonGroup

    Join on ReasonId = smmQuotationReasonGroup.ReasonId

    Many smmLeadTable records → zero or one smmQuotationReasonGroup record

  • smmSalesUnit → smmSalesUnit

    Join on SalesUnitId = smmSalesUnit.SalesUnitId

    Many smmLeadTable records → zero or one smmSalesUnit record

  • smmSourceTypeTable → smmSourceTypeTable

    Join on SourceTypeId = smmSourceTypeTable.TypeId

    Many 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.

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

Email sales@drdynamics.co.uk