Table

smmBusRelTable

Prospects

Holds prospects, which are potential customers or vendors, with one record per prospect account. The key is BusRelAccount. Each record links to a party name, and to groups such as type, status, segment, sales district and company chain. It also holds default trade and finance data, such as currency, delivery terms, tax group and credit limit.

Table name
smmBusRelTable
Module
Sales and marketing
Table group
Main
Table type
Regular
Data per company
Yes
Configuration key
SmmCRM
Primary index
AccountIdx
Replacement key
AccountIdx
Key fields
BusRelAccount
Model
Foundation

Fields (46)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
BusRelAccountAccount number that identifies the prospect.String (20)
smmBusRelAccount
YessmmProspectD365SalesEntitysmmProspectEntityDimAttributeSmmBusRelTableEntity
BlockedShows whether the prospect is blocked, and for which kind of transaction, such as invoices or all.Enum
smmRelationBlocked
CustVendorBlocked (enum)
NosmmProspectD365SalesEntitysmmProspectEntity
BusRelTypeIdType of the prospect. Points to a relation type group.String (20)
smmBusRelTypeId
YessmmBusRelTypeGroup.TypeIdsmmProspectD365SalesEntitysmmProspectEntity
CompanyChainCompany chain the prospect belongs to. Points to a company chain group.String (20)
smmChainId
NosmmBusRelChainGroup.ChainIdsmmProspectEntity
CompanyIdSiretFrench SIRET company number.String (14)
CompanyIdSiret
NosmmProspectEntity
CompanyNAFCodeNAF activity code of the company, used for France. Stores the RecId of a NAF code.Int64
CompanyNAFRecId
NoCompanyNAFCode.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
CreditMaxCredit limit for the prospect (in accounting currency).Real
smmCreditMaxMST
NosmmProspectD365SalesEntitysmmProspectEntity
CreditRatingCredit rating given to the prospect.String
smmCreditRating
NosmmProspectD365SalesEntitysmmProspectEntity
CurrencyCurrency used for the prospect. Points to a currency.String (3)
CurrencyCode
YesCurrency.CurrencyCodesmmProspectD365SalesEntitysmmProspectEntity
CustGroupCustomer group for the prospect. Points to a customer group.String
CustGroupId
NoCustGroup.CustGroupsmmProspectD365SalesEntitysmmProspectEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension values. Stores the RecId of a dimension value set.Int64
LedgerDefaultDimensionValueSet
NoDimensionAttributeValueSet.RecIdsmmProspectEntity
DestinationCodeIdDestination code for the prospect. Points to a destination code.String
smmDestinationCodeId
NoDestinationCode.DestinationCodeIdsmmProspectEntity
DirectMailYes/No setting that shows whether direct mail may be sent.Enum
smmBusRelDirectMail
NoYes (enum)
NosmmProspectEntity
DlvModeDefault mode of delivery. Points to a delivery mode.String
smmDlvModeId
NoDlvMode.CodesmmProspectEntity
DlvTermDefault terms of delivery. Points to a delivery term.String
smmDlvTermId
NoDlvTerm.CodesmmProspectEntity
FiscalCodeFiscal code of the prospect.String (16)
FiscalCode
NosmmProspectEntity
FreightZoneUPS freight zone for the prospect.String
smmFreightZoneId
NosmmProspectEntity
ImportedYes/No setting that shows whether the record was imported.Enum
NoYesId
NoYes (enum)
NosmmProspectEntity
InclTaxYes/No setting that shows whether prices include sales tax.Enum
InclTax
NoYes (enum)
NosmmProspectEntity
IsIntegrationIntegration type of the record: none, Dataverse integration, Dynamics 365 Sales or data entity.Enum
TradeIntegrationType (enum)
NoNone
LineOfBusinessIdLine of business of the prospect. Points to a line of business.String
LineOfBusinessId
NoLineOfBusiness.LineOfBusinessIdsmmProspectEntity
MainContactWorkerMain contact for the prospect. Stores the RecId of a worker.Int64
smmBusRelAccResponsibleWorker
NoHcmWorker.RecIdsmmProspectEntity
MandatoryCreditLimitYes/No setting that says whether a credit limit is required.Enum
MandatoryCreditLimit
NoYes (enum)
NosmmProspectD365SalesEntitysmmProspectEntity
MCRPackedExtensionsPacked container of extension data.low confidenceContainer
SysExtensionSerializerPackedContainer
NoNone
MemoFree-text note about the prospect.String (-1)
smmBusRelMemo
NosmmProspectD365SalesEntitysmmProspectEntity
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
OneTimeRelationYes/No setting that marks a one-time customer or vendor.Enum
smmOneTimeRelation
NoYes (enum)
NosmmProspectD365SalesEntitysmmProspectEntity
OpenFromTimeTime of day when the prospect opens.Time
smmBusRelOpenFromTime
NosmmProspectEntity
OpenToTimeTime of day when the prospect closes.Time
smmBusRelOpenToTime
NosmmProspectEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PartyParty record that holds the name of the prospect. Stores the RecId of the party.Int64
DirPartyRecId
NoCustTable.PartyDirPartyTable.RecIdVendTable.PartysmmProspectD365SalesEntity
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
SalesCalendarIdReceipt calendar of the prospect. Points to a work calendar.String
SalesCalendarId
NoWorkCalendarTable.CalendarIdsmmProspectEntity
SalesDistrictSales district of the prospect. Points to a sales district group.String (20)
smmSalesDistrictId
NosmmBusRelSalesDistrictGroup.SalesDistrictIdsmmProspectEntity
SegmentSegment the prospect belongs to. Points to a segment group.String (20)
smmSegmentId
NosmmBusRelSegmentGroup.SegmentIdsmmProspectEntity
StatusStatus of the prospect. Points to a status group.String (20)
smmStatusId
NosmmBusRelStatusGroup.StatusIdsmmProspectEntity
SubsegmentSubsegment within the chosen segment. Points to a subsegment group.String (20)
smmSubsegmentId
NosmmBusRelSubSegmentGroup.SubsegmentIdsmmProspectEntity
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
TaxGroupSales tax group for the prospect. Points to a tax group.String
TaxGroup
NoTaxGroupHeading.TaxGroupsmmProspectD365SalesEntitysmmProspectEntity
VendGroupVendor group for the prospect. Points to a vendor group.String
VendGroupId
NoVendGroup.VendGroupsmmProspectEntity

Indexes (6)

Relations (24)

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

  • CompanyNAFCode → CompanyNAFCode

    Join on CompanyNAFCode = CompanyNAFCode.RecId

    Many smmBusRelTable records → zero or one CompanyNAFCode record

  • Currency → Currency

    Join on Currency = Currency.CurrencyCode

    Many smmBusRelTable records → exactly one Currency record

  • CustGroup → CustGroup

    Join on CustGroup = CustGroup.CustGroup

    Many smmBusRelTable records → zero or one CustGroup record

  • CustTable → CustTable

    Join on Party = CustTable.Party

    Zero or one smmBusRelTable record → zero or one CustTable record

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many smmBusRelTable records → zero or one DimensionAttributeValueSet record

  • DestinationCode → DestinationCode

    Join on DestinationCodeId = DestinationCode.DestinationCodeId

    Many smmBusRelTable records → zero or one DestinationCode record

  • DirAddressBookParty → DirAddressBookPartyAllView

    Join on Party = DirAddressBookPartyAllView.Party

    Cardinality not set in the metadata.

  • DirPartyTable_FK → DirPartyTable

    Join on Party = DirPartyTable.RecId

    Zero or one smmBusRelTable record → zero or one DirPartyTable record

  • DirPartyView → DirPartyView

    Join on Party = DirPartyView.Party

    Cardinality not set in the metadata.

  • DlvMode → DlvMode

    Join on DlvMode = DlvMode.Code

    Many smmBusRelTable records → zero or one DlvMode record

  • DlvTerm → DlvTerm

    Join on DlvTerm = DlvTerm.Code

    Many smmBusRelTable records → zero or one DlvTerm record

  • LineOfBusiness → LineOfBusiness

    Join on LineOfBusinessId = LineOfBusiness.LineOfBusinessId

    Many smmBusRelTable records → zero or one LineOfBusiness record

  • MainContactWorker → HcmWorker

    Join on MainContactWorker = HcmWorker.RecId

    Many smmBusRelTable records → zero or one HcmWorker record

  • smmBusRelChainGroup → smmBusRelChainGroup

    Join on CompanyChain = smmBusRelChainGroup.ChainId

    Many smmBusRelTable records → zero or one smmBusRelChainGroup record

  • smmBusRelSalesDistrictGroup → smmBusRelSalesDistrictGroup

    Join on SalesDistrict = smmBusRelSalesDistrictGroup.SalesDistrictId

    Many smmBusRelTable records → zero or one smmBusRelSalesDistrictGroup record

  • smmBusRelSegmentGroup → smmBusRelSegmentGroup

    Join on Segment = smmBusRelSegmentGroup.SegmentId

    Many smmBusRelTable records → zero or one smmBusRelSegmentGroup record

  • smmBusRelStatusGroup → smmBusRelStatusGroup

    Join on Status = smmBusRelStatusGroup.StatusId

    Many smmBusRelTable records → zero or one smmBusRelStatusGroup record

  • smmBusRelSubSegmentGroup → smmBusRelSubSegmentGroup

    Join on Segment = smmBusRelSubSegmentGroup.SegmentId, Subsegment = smmBusRelSubSegmentGroup.SubsegmentId

    Many smmBusRelTable records → zero or one smmBusRelSubSegmentGroup record

  • smmBusRelTypeGroup → smmBusRelTypeGroup

    Join on BusRelTypeId = smmBusRelTypeGroup.TypeId

    Many smmBusRelTable records → exactly one smmBusRelTypeGroup record

  • TaxGroupHeading → TaxGroupHeading

    Join on TaxGroup = TaxGroupHeading.TaxGroup

    Many smmBusRelTable records → zero or one TaxGroupHeading record

  • VendGroup → VendGroup

    Join on VendGroup = VendGroup.VendGroup

    Many smmBusRelTable records → zero or one VendGroup record

  • VendTable → VendTable

    Join on Party = VendTable.Party

    Zero or one smmBusRelTable record → zero or one VendTable record

  • WorkCalendarTable → WorkCalendarTable

    Join on SalesCalendarId = WorkCalendarTable.CalendarId

    Many smmBusRelTable records → zero or one WorkCalendarTable record

  • DocuRef → DocuRef

    Join on Party = DocuRef.Party

    Zero or one smmBusRelTable record → zero or one DocuRef record

Get this data out

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

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

Email sales@drdynamics.co.uk