Table
SalesAgreementHeaderDefault
Release sales order defaulting policy
Holds the default values used when sales orders are released from a sales agreement. There is one record per sales agreement. It covers campaign, commission groups, invoice account, payment method, pool, sales unit and the person responsible. Many fields are paired with a company field to identify the related record.
- Table name
SalesAgreementHeaderDefault- Module
Sales and marketing- Table group
WorksheetHeader- Table type
Regular- Data per company
No- Configuration key
TradeBlanketOrder- Primary index
None- Replacement key
SalesAgreementHeaderIdx- Key fields
SalesAgreementHeader- Model
Foundation
Fields (32)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
SalesAgreementHeaderPoints to the sales agreement that these defaults belong to. | Int64AgreementHeaderRecId | Yes | SalesAgreementHeader.RecId | None |
CampaignThe campaign that is set by default. | StringsmmCampaignId | No | smmCampaignTable.CampaignId | SalesAgreementHeaderEntity |
CampaignDataAreaIdCompany of the related campaign record. | StringDataAreaId | No | smmCampaignTable.dataAreaId | None |
CommissionCustomerGroupDefault commission group for the customer. | StringCommissCustomerGroup | No | CommissionCustomerGroup.GroupId | SalesAgreementHeaderEntity |
CommissionCustomerGroupDataAreaIdCompany of the related commission customer group. | StringDataAreaId | No | CommissionCustomerGroup.dataAreaId | None |
CommissionSalesGroupDefault sales commission group. | StringCommissSalesGroup | No | CommissionSalesGroup.GroupId | SalesAgreementHeaderEntity |
CommissionSalesGroupDataAreaIdCompany of the related commission sales group. | StringDataAreaId | No | CommissionSalesGroup.dataAreaId | 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 | |
CustomerInvoiceAccountCustomer account to invoice by default. | String (20)CustInvoiceAccount | No | CustTable.AccountNum | SalesAgreementHeaderEntitySalesAgreementLineEntity |
CustomerInvoiceAccountDataAreaIdCompany of the related invoice customer account. | StringDataAreaId | No | CustTable.dataAreaId | None |
CustomerMethodOfPaymentDefault method of payment for the customer. | StringCustPaymMode | No | CustPaymModeSpec.PaymModeCustPaymModeTable.PaymMode | SalesAgreementHeaderEntity |
CustomerMethodOfPaymentDataAreaIdCompany of the related method of payment. | StringDataAreaId | No | CustPaymModeTable.dataAreaId | None |
CustomerPaymentSpecDefault payment specification. | StringCustPaymSpec | No | CustPaymModeSpec.Specification | SalesAgreementHeaderEntity |
CustomerPaymentSpecDataAreaIdCompany of the related payment specification. | StringDataAreaId | No | CustPaymModeSpec.dataAreaId | None |
CustomerRequisitionNumberThe customer's own requisition or purchase order reference. | String (20)CustPurchaseOrder | No | SalesAgreementHeaderEntity | |
EntryCertificateRequired_WYes/No flag showing whether an entry certificate is required. | EnumEntryCertificateRequired_WNoYes (enum) | No | None | |
FixedExchangeRateA fixed exchange rate to use by default. | RealSalesFixedExchRate | No | SalesAgreementHeaderEntity | |
IssueOwnEntryCertificate_WYes/No flag showing whether the company issues its own entry certificate. | EnumIssueOwnEntryCertificate_WNoYes (enum) | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PdsExcludeFromRebateYes/No flag to leave the order out of rebates. | EnumPdsExcludeFromRebateNoYes (enum) | No | SalesAgreementHeaderEntity | |
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 | |
ReportingCurrencyFixedExchRateAn exchange rate value labelled 'Exchange rate'; the currency is not stated in the metadata.low confidence | RealCustExchRate | No | SalesAgreementHeaderEntity | |
SalesPoolDefault order pool. | StringSalesPoolId | No | SalesPool.SalesPoolId | SalesAgreementHeaderEntity |
SalesPoolDataAreaIdCompany of the related order pool. | StringDataAreaId | No | SalesPool.dataAreaId | None |
SalesUnitDefault sales management unit. | String (20)smmSalesUnitId | No | smmSalesUnit.SalesUnitId | SalesAgreementHeaderEntity |
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 who is responsible for the sale. | Int64WorkerSalesResponsible | No | HcmWorker.RecId | SalesAgreementHeaderEntity |
Indexes (9)
CommissionSalesGroupIdxCommissionSalesGroupDataAreaId,CommissionSalesGroupNot unique.
CommissionCustomerGroupIdxCommissionCustomerGroupDataAreaId,CommissionCustomerGroupNot unique.
CustPaymModeTableIdxCustomerMethodOfPaymentDataAreaId,CustomerMethodOfPaymentNot unique.
CustPaymModeSpecIdxCustomerPaymentSpecDataAreaId,CustomerPaymentSpec,CustomerMethodOfPayment,CustomerInvoiceAccountDataAreaIdNot unique.
DefaultCustInvoiceAccountdxCustomerInvoiceAccountDataAreaId,CustomerInvoiceAccountNot unique.
SalesPoolIdxSalesPoolDataAreaId,SalesPoolNot unique.
smmSalesUnitIdxSalesUnitDataAreaId,SalesUnitNot unique.
smmCampaignTableIdxNot unique.
SalesAgreementHeaderIdxReplacement keyUnique, alternate key.
Relations (10)
Each relation joins SalesAgreementHeaderDefault to another table on the fields shown.
Campaign→smmCampaignTableJoin on
CampaignDataAreaId = smmCampaignTable.dataAreaId,Campaign = smmCampaignTable.CampaignIdMany SalesAgreementHeaderDefault records → zero or one smmCampaignTable record
CommissionCustomerGroup→CommissionCustomerGroupJoin on
CommissionCustomerGroupDataAreaId = CommissionCustomerGroup.dataAreaId,CommissionCustomerGroup = CommissionCustomerGroup.GroupIdMany SalesAgreementHeaderDefault records → zero or one CommissionCustomerGroup record
CommissionSalesGroup→CommissionSalesGroupJoin on
CommissionSalesGroupDataAreaId = CommissionSalesGroup.dataAreaId,CommissionSalesGroup = CommissionSalesGroup.GroupIdMany SalesAgreementHeaderDefault records → zero or one CommissionSalesGroup record
CustPaymModeSpec→CustPaymModeSpecJoin on
CustomerPaymentSpecDataAreaId = CustPaymModeSpec.dataAreaId,CustomerPaymentSpec = CustPaymModeSpec.Specification,CustomerMethodOfPayment = CustPaymModeSpec.PaymModeMany SalesAgreementHeaderDefault records → zero or one CustPaymModeSpec record
CustPaymModeTable→CustPaymModeTableJoin on
CustomerMethodOfPaymentDataAreaId = CustPaymModeTable.dataAreaId,CustomerMethodOfPayment = CustPaymModeTable.PaymModeMany SalesAgreementHeaderDefault records → zero or one CustPaymModeTable record
DefaultCustomerInvoiceAccount→CustTableJoin on
CustomerInvoiceAccountDataAreaId = CustTable.dataAreaId,CustomerInvoiceAccount = CustTable.AccountNumMany SalesAgreementHeaderDefault records → zero or one CustTable record
SalesAgreementHeader→SalesAgreementHeaderJoin on
SalesAgreementHeader = SalesAgreementHeader.RecIdZero or one SalesAgreementHeaderDefault record → exactly one SalesAgreementHeader record
SalesPool→SalesPoolJoin on
SalesPoolDataAreaId = SalesPool.dataAreaId,SalesPool = SalesPool.SalesPoolIdMany SalesAgreementHeaderDefault records → zero or one SalesPool record
SalesUnit→smmSalesUnitJoin on
SalesUnitDataAreaId = smmSalesUnit.dataAreaId,SalesUnit = smmSalesUnit.SalesUnitIdMany SalesAgreementHeaderDefault records → zero or one smmSalesUnit record
WorkerSalesResponsible_FK→HcmWorkerJoin on
WorkerSalesResponsible = HcmWorker.RecIdMany SalesAgreementHeaderDefault records → zero or one HcmWorker record
Get this data out
Tables are not exposed directly. These public entities read from SalesAgreementHeaderDefault; use one of them in Power BI, Power Platform or a data management project.
RetailSalesAgreementFulfillmentEntity· 0 fields from this tableSalesAgreementHeaderEntity· 13 fields from this tableSalesAgreementLineEntity· 1 field from this table
Need help with SalesAgreementHeaderDefault in a report, an integration or a migration? Talk to Dr Dynamics.