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 descriptionType / EDT / enumMandatoryReferencesIn public entities
CustAccountAccount number of the customer.String (20)
CustAccount
YesCustTable.AccountNumSalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity
CustomerDataAreaIdCompany of the related customer record.String
DataAreaId
YesCustTable.dataAreaIdNone
InstanceRelationTypeShows which table in a table inheritance hierarchy the record belongs to. System field.Int64
RelationType
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
SalesNumberSequenceID of the sales agreement.String (20)
SalesAgreementId
YesSalesAgreementConfirmationHeaderEntitySalesAgreementConfirmationLineEntity
SellingLegalEntityPoints to the legal entity that sells.Int64
RefRecId
NoCompanyInfo.RecIdSalesAgreementConfirmationHeaderEntity
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

Indexes (2)

Relations (3)

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

  • AgreementHistorySales → AgreementHeaderHistory

    Join on RecId = AgreementHeaderHistory.RecId

    Zero or one SalesAgreementHeaderHistory record → exactly one AgreementHeaderHistory record

  • CompanyInfoSelling → CompanyInfo

    Join on SellingLegalEntity = CompanyInfo.RecId

    Many SalesAgreementHeaderHistory records → exactly one CompanyInfo record

  • CustTable → CustTable

    Join on CustomerDataAreaId = CustTable.dataAreaId, CustAccount = CustTable.AccountNum

    Many 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.

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

Email sales@drdynamics.co.uk