Table
SalesAgreementHeaderHistory
Sales agreement confirmation history
Holds the header of a sales agreement confirmation history record. It stores the customer account, the sales agreement ID and the selling legal entity. It links to the general agreement history and to the customer.
- Table name
SalesAgreementHeaderHistory- Module
Sales and marketing- Table group
TransactionHeader- Table type
Regular- Data per company
No- Configuration key
TradeBlanketOrder- Primary index
None- Replacement key
None- Key fields
None- Model
Foundation- Extends
AgreementHeaderHistory
Fields (10)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustAccountAccount number of the customer. | String (20)CustAccount | Yes | CustTable.AccountNum | SalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity |
CustomerDataAreaIdCompany of the related customer record. | StringDataAreaId | Yes | CustTable.dataAreaId | None |
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field. | Int64RelationType | 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 | |
SalesNumberSequenceID of the sales agreement. | String (20)SalesAgreementId | Yes | SalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity | |
SellingLegalEntityPoints to the legal entity that sells. | Int64RefRecId | No | CompanyInfo.RecId | SalesAgreementConfirmationHeaderEntity |
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 |
Indexes (2)
CustTableIdxCustomerDataAreaId,CustAccountNot unique.
CompanyInfoIdxNot unique.
Relations (3)
Each relation joins SalesAgreementHeaderHistory to another table on the fields shown.
AgreementHistorySales→AgreementHeaderHistoryJoin on
RecId = AgreementHeaderHistory.RecIdZero or one SalesAgreementHeaderHistory record → exactly one AgreementHeaderHistory record
CompanyInfoSelling→CompanyInfoJoin on
SellingLegalEntity = CompanyInfo.RecIdMany SalesAgreementHeaderHistory records → exactly one CompanyInfo record
CustTable→CustTableJoin on
CustomerDataAreaId = CustTable.dataAreaId,CustAccount = CustTable.AccountNumMany SalesAgreementHeaderHistory records → exactly one CustTable record
Get this data out
Tables are not exposed directly. These public entities read from SalesAgreementHeaderHistory; use one of them in Power BI, Power Platform or a data management project.
SalesAgreementConfirmationHeaderEntity· 3 fields from this tableSalesAgreementConfirmationLineEntity· 2 fields from this table
Need help with SalesAgreementHeaderHistory in a report, an integration or a migration? Talk to Dr Dynamics.