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 description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesAgreementHeaderHistoryPoints to the confirmation history record that these values belong to. | Int64RefRecId | Yes | SalesAgreementHeaderHistory.RecId | None |
CampaignThe campaign that was set by default. | StringsmmCampaignId | No | smmCampaignTable.CampaignId | SalesAgreementConfirmationHeaderEntity |
CampaignDataAreaIdCompany of the related campaign record. | StringDataAreaId | No | smmCampaignTable.dataAreaId | None |
CommissionCustomerGroupCommission group for the customer. | StringCommissCustomerGroup | No | CommissionCustomerGroup.GroupId | SalesAgreementConfirmationHeaderEntity |
CommissionCustomerGroupDataAreaIdCompany of the related commission customer group. | StringDataAreaId | No | CommissionCustomerGroup.dataAreaId | None |
CommissionSalesGroupSales commission group. | StringCommissSalesGroup | No | CommissionSalesGroup.GroupId | SalesAgreementConfirmationHeaderEntity |
CommissionSalesGroupDataAreaIdCompany of the related commission sales group. | StringDataAreaId | No | CommissionSalesGroup.dataAreaId | None |
CustomerInvoiceAccountCustomer account to invoice. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | SalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity |
CustomerInvoiceAccountDataAreaIdCompany of the related invoice customer account. | StringDataAreaId | No | CustTable.dataAreaId | None |
CustomerMethodOfPaymentMethod of payment for the customer. | StringCustPaymMode | No | CustPaymModeSpec.PaymModeCustPaymModeTable.PaymMode | SalesAgreementConfirmationHeaderEntity |
CustomerMethodOfPaymentDataAreaIdCompany of the related method of payment. | StringDataAreaId | No | CustPaymModeTable.dataAreaId | None |
CustomerPaymentSpecPayment specification. | StringCustPaymSpec | No | CustPaymModeSpec.Specification | SalesAgreementConfirmationHeaderEntity |
CustomerPaymentSpecDataAreaIdCompany of the related payment specification. | StringDataAreaId | No | CustPaymModeSpec.dataAreaId | None |
CustomerRequisitionNumberThe customer's own requisition or purchase order reference. | String (20)CustPurchaseOrder | No | SalesAgreementConfirmationHeaderEntity | |
EntryCertificateRequired_WYes/No flag showing whether an entry certificate is required. | EnumEntryCertificateRequired_WNoYes (enum) | No | None | |
FixedExchangeRateA fixed exchange rate. | RealSalesFixedExchRate | No | SalesAgreementConfirmationHeaderEntity | |
IssueOwnEntryCertificate_WYes/No flag showing whether the company issues its own entry certificate. | EnumIssueOwnEntryCertificate_WNoYes (enum) | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | 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 | |
ReportingCurrencyFixedExchRateA fixed exchange rate for the reporting currency, judging by the name; the label is empty.low confidence | Real | No | SalesAgreementConfirmationHeaderEntity | |
SalesPoolOrder pool. | StringSalesPoolId | No | SalesPool.SalesPoolId | SalesAgreementConfirmationHeaderEntity |
SalesPoolDataAreaIdCompany of the related order pool. | StringDataAreaId | No | SalesPool.dataAreaId | None |
SalesUnitSales management unit. | String (20)smmSalesUnitId | No | smmSalesUnit.SalesUnitId | SalesAgreementConfirmationHeaderEntity |
SalesUnitDataAreaIdCompany of the related sales unit. | StringDataAreaId | No | smmSalesUnit.dataAreaId | 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 | |
WorkerSalesResponsibleThe worker responsible for the sale. | Int64RefRecId | No | HcmWorker.RecId | SalesAgreementConfirmationHeaderEntity |
Indexes (9)
smmSalesUnitIdxSalesUnitDataAreaId,SalesUnitNot unique.
SalesPoolIdxSalesPoolDataAreaId,SalesPoolNot unique.
DefaultCustomerInvoiceAccountIdxCustomerInvoiceAccountDataAreaId,CustomerInvoiceAccountNot unique.
CustPaymModeTableIdxCustomerMethodOfPaymentDataAreaId,CustomerMethodOfPaymentNot unique.
CustPaymModeSpecIdxCustomerPaymentSpecDataAreaId,CustomerPaymentSpec,CustomerMethodOfPaymentNot unique.
CommissionSalesGroupIdxCommissionSalesGroupDataAreaId,CommissionSalesGroupNot unique.
CommissionCustomerGroupIdxCommissionCustomerGroupDataAreaId,CommissionCustomerGroupNot unique.
smmCampaignTableIdxNot unique.
SalesAgreementHeaderHistoryIdxReplacement keyUnique, alternate key.
Relations (10)
Each relation joins SalesAgreementHeaderDefaultHistory to another table on the fields shown.
Campaign→smmCampaignTableJoin on
CampaignDataAreaId = smmCampaignTable.dataAreaId,Campaign = smmCampaignTable.CampaignIdMany SalesAgreementHeaderDefaultHistory records → zero or one smmCampaignTable record
CommissionCustomerGroup→CommissionCustomerGroupJoin on
CommissionCustomerGroupDataAreaId = CommissionCustomerGroup.dataAreaId,CommissionCustomerGroup = CommissionCustomerGroup.GroupIdMany SalesAgreementHeaderDefaultHistory records → zero or one CommissionCustomerGroup record
CommissionSalesGroup→CommissionSalesGroupJoin on
CommissionSalesGroupDataAreaId = CommissionSalesGroup.dataAreaId,CommissionSalesGroup = CommissionSalesGroup.GroupIdMany SalesAgreementHeaderDefaultHistory records → zero or one CommissionSalesGroup record
CustPaymModeSpec→CustPaymModeSpecJoin on
CustomerPaymentSpecDataAreaId = CustPaymModeSpec.dataAreaId,CustomerPaymentSpec = CustPaymModeSpec.Specification,CustomerMethodOfPayment = CustPaymModeSpec.PaymModeMany SalesAgreementHeaderDefaultHistory records → zero or one CustPaymModeSpec record
CustPaymModeTable→CustPaymModeTableJoin on
CustomerMethodOfPaymentDataAreaId = CustPaymModeTable.dataAreaId,CustomerMethodOfPayment = CustPaymModeTable.PaymModeMany SalesAgreementHeaderDefaultHistory records → zero or one CustPaymModeTable record
DefaultCustomerInvoiceAccount→CustTableJoin on
CustomerInvoiceAccountDataAreaId = CustTable.dataAreaId,CustomerInvoiceAccount = CustTable.AccountNumMany SalesAgreementHeaderDefaultHistory records → zero or one CustTable record
SalesAgreementHeaderHistory→SalesAgreementHeaderHistoryJoin on
SalesAgreementHeaderHistory = SalesAgreementHeaderHistory.RecIdZero or one SalesAgreementHeaderDefaultHistory record → exactly one SalesAgreementHeaderHistory record
SalesPool→SalesPoolJoin on
SalesPoolDataAreaId = SalesPool.dataAreaId,SalesPool = SalesPool.SalesPoolIdMany SalesAgreementHeaderDefaultHistory records → zero or one SalesPool record
SalesUnit→smmSalesUnitJoin on
SalesUnitDataAreaId = smmSalesUnit.dataAreaId,SalesUnit = smmSalesUnit.SalesUnitIdMany SalesAgreementHeaderDefaultHistory records → zero or one smmSalesUnit record
WorkerSalesResponsible_FK→HcmWorkerJoin on
WorkerSalesResponsible = HcmWorker.RecIdMany 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.
SalesAgreementConfirmationHeaderEntity· 12 fields from this tableSalesAgreementConfirmationLineEntity· 1 field from this table
Need help with SalesAgreementHeaderDefaultHistory in a report, an integration or a migration? Talk to Dr Dynamics.