Table

SalesAgreementHeaderDefaultHistory

Sales agreement confirmation history

Keeps a copy of the default values of a sales agreement at the time of a confirmation. There is one record per confirmation history record. It mirrors the defaults for campaign, commission groups, invoice account, payment method, pool, sales unit and responsible worker.

Table name
SalesAgreementHeaderDefaultHistory
Module
Sales and marketing
Table group
TransactionHeader
Table type
Regular
Data per company
No
Configuration key
TradeBlanketOrder
Primary index
None
Replacement key
SalesAgreementHeaderHistoryIdx
Key fields
SalesAgreementHeaderHistory
Model
Foundation

Fields (28)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
SalesAgreementHeaderHistoryPoints to the confirmation history record that these values belong to.Int64
RefRecId
YesSalesAgreementHeaderHistory.RecIdNone
CampaignThe campaign that was set by default.String
smmCampaignId
NosmmCampaignTable.CampaignIdSalesAgreementConfirmationHeaderEntity
CampaignDataAreaIdCompany of the related campaign record.String
DataAreaId
NosmmCampaignTable.dataAreaIdNone
CommissionCustomerGroupCommission group for the customer.String
CommissCustomerGroup
NoCommissionCustomerGroup.GroupIdSalesAgreementConfirmationHeaderEntity
CommissionCustomerGroupDataAreaIdCompany of the related commission customer group.String
DataAreaId
NoCommissionCustomerGroup.dataAreaIdNone
CommissionSalesGroupSales commission group.String
CommissSalesGroup
NoCommissionSalesGroup.GroupIdSalesAgreementConfirmationHeaderEntity
CommissionSalesGroupDataAreaIdCompany of the related commission sales group.String
DataAreaId
NoCommissionSalesGroup.dataAreaIdNone
CustomerInvoiceAccountCustomer account to invoice.String (20)
CustInvoiceAccount
NoCustTable.AccountNumSalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity
CustomerInvoiceAccountDataAreaIdCompany of the related invoice customer account.String
DataAreaId
NoCustTable.dataAreaIdNone
CustomerMethodOfPaymentMethod of payment for the customer.String
CustPaymMode
NoCustPaymModeSpec.PaymModeCustPaymModeTable.PaymModeSalesAgreementConfirmationHeaderEntity
CustomerMethodOfPaymentDataAreaIdCompany of the related method of payment.String
DataAreaId
NoCustPaymModeTable.dataAreaIdNone
CustomerPaymentSpecPayment specification.String
CustPaymSpec
NoCustPaymModeSpec.SpecificationSalesAgreementConfirmationHeaderEntity
CustomerPaymentSpecDataAreaIdCompany of the related payment specification.String
DataAreaId
NoCustPaymModeSpec.dataAreaIdNone
CustomerRequisitionNumberThe customer's own requisition or purchase order reference.String (20)
CustPurchaseOrder
NoSalesAgreementConfirmationHeaderEntity
EntryCertificateRequired_WYes/No flag showing whether an entry certificate is required.Enum
EntryCertificateRequired_W
NoYes (enum)
NoNone
FixedExchangeRateA fixed exchange rate.Real
SalesFixedExchRate
NoSalesAgreementConfirmationHeaderEntity
IssueOwnEntryCertificate_WYes/No flag showing whether the company issues its own entry certificate.Enum
IssueOwnEntryCertificate_W
NoYes (enum)
NoNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
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
ReportingCurrencyFixedExchRateA fixed exchange rate for the reporting currency, judging by the name; the label is empty.low confidenceRealNoSalesAgreementConfirmationHeaderEntity
SalesPoolOrder pool.String
SalesPoolId
NoSalesPool.SalesPoolIdSalesAgreementConfirmationHeaderEntity
SalesPoolDataAreaIdCompany of the related order pool.String
DataAreaId
NoSalesPool.dataAreaIdNone
SalesUnitSales management unit.String (20)
smmSalesUnitId
NosmmSalesUnit.SalesUnitIdSalesAgreementConfirmationHeaderEntity
SalesUnitDataAreaIdCompany of the related sales unit.String
DataAreaId
NosmmSalesUnit.dataAreaIdNone
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
WorkerSalesResponsibleThe worker responsible for the sale.Int64
RefRecId
NoHcmWorker.RecIdSalesAgreementConfirmationHeaderEntity

Indexes (9)

Relations (10)

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

  • Campaign → smmCampaignTable

    Join on CampaignDataAreaId = smmCampaignTable.dataAreaId, Campaign = smmCampaignTable.CampaignId

    Many SalesAgreementHeaderDefaultHistory records → zero or one smmCampaignTable record

  • CommissionCustomerGroup → CommissionCustomerGroup

    Join on CommissionCustomerGroupDataAreaId = CommissionCustomerGroup.dataAreaId, CommissionCustomerGroup = CommissionCustomerGroup.GroupId

    Many SalesAgreementHeaderDefaultHistory records → zero or one CommissionCustomerGroup record

  • CommissionSalesGroup → CommissionSalesGroup

    Join on CommissionSalesGroupDataAreaId = CommissionSalesGroup.dataAreaId, CommissionSalesGroup = CommissionSalesGroup.GroupId

    Many SalesAgreementHeaderDefaultHistory records → zero or one CommissionSalesGroup record

  • CustPaymModeSpec → CustPaymModeSpec

    Join on CustomerPaymentSpecDataAreaId = CustPaymModeSpec.dataAreaId, CustomerPaymentSpec = CustPaymModeSpec.Specification, CustomerMethodOfPayment = CustPaymModeSpec.PaymMode

    Many SalesAgreementHeaderDefaultHistory records → zero or one CustPaymModeSpec record

  • CustPaymModeTable → CustPaymModeTable

    Join on CustomerMethodOfPaymentDataAreaId = CustPaymModeTable.dataAreaId, CustomerMethodOfPayment = CustPaymModeTable.PaymMode

    Many SalesAgreementHeaderDefaultHistory records → zero or one CustPaymModeTable record

  • DefaultCustomerInvoiceAccount → CustTable

    Join on CustomerInvoiceAccountDataAreaId = CustTable.dataAreaId, CustomerInvoiceAccount = CustTable.AccountNum

    Many SalesAgreementHeaderDefaultHistory records → zero or one CustTable record

  • SalesAgreementHeaderHistory → SalesAgreementHeaderHistory

    Join on SalesAgreementHeaderHistory = SalesAgreementHeaderHistory.RecId

    Zero or one SalesAgreementHeaderDefaultHistory record → exactly one SalesAgreementHeaderHistory record

  • SalesPool → SalesPool

    Join on SalesPoolDataAreaId = SalesPool.dataAreaId, SalesPool = SalesPool.SalesPoolId

    Many SalesAgreementHeaderDefaultHistory records → zero or one SalesPool record

  • SalesUnit → smmSalesUnit

    Join on SalesUnitDataAreaId = smmSalesUnit.dataAreaId, SalesUnit = smmSalesUnit.SalesUnitId

    Many SalesAgreementHeaderDefaultHistory records → zero or one smmSalesUnit record

  • WorkerSalesResponsible_FK → HcmWorker

    Join on WorkerSalesResponsible = HcmWorker.RecId

    Many SalesAgreementHeaderDefaultHistory records → zero or one HcmWorker record

Get this data out

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

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

Email sales@drdynamics.co.uk