Data entity

SalesAgreementHeaderEntity

Holds sales agreement headers, one record per agreement, keyed by sales agreement ID. It includes the customer, classification, status, currency, effective and expiration dates, payment terms and delivery details. It also joins transport fields and fields used for Russia.

Entity name
SalesAgreementHeaderEntity
Public entity name
SalesAgreement
OData collection
SalesAgreements
Category
Document
Module
Sales and marketing
Read-only
No
Data management enabled
Yes
Configuration key
TradeBlanketOrder
Keys
SalesAgreementId
Staging table
SalesAgreementHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/SalesAgreements
Dataverse virtual table
mserp_salesagreementheaderentity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.
Data management
Enabled: you can use it in import and export projects.

Data sources

  • SalesAgreementHeader · root
  • AgreementClassification · InnerJoin to SalesAgreementHeader · read-only
  • Originator (table DirPerson) · OuterJoin to SalesAgreementHeader · read-only
  • CompanyInfo · InnerJoin to SalesAgreementHeader · read-only
  • DefaultLedgerDimensionDAVS (table DimensionSetEntity) · OuterJoin to SalesAgreementHeader · read-only
  • SalesAgreementHeaderDefault · OuterJoin to SalesAgreementHeader
  • HcmWorker_OrderResponsible (table HcmWorker) · OuterJoin to SalesAgreementHeaderDefault · read-only
  • AgreementHeaderDefault · OuterJoin to SalesAgreementHeader
  • LogisticsPostalAddressBaseEntity · OuterJoin to AgreementHeaderDefault
  • TMSSalesAgreementHeader · OuterJoin to SalesAgreementHeader
  • SalesAgreementHeaderExt_RU · OuterJoin to SalesAgreementHeader

Fields (96)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
SellingLegalEntityRecIdLegal entity that sells under the agreement.Int64
RefRecId
NoNo (private)CompanyInfo.RecIdSalesAgreementHeader.SellingLegalEntity
SellingLegalEntityIdCompany ID of the legal entity. It is the key.String
SelectableDataArea
NoYesCompanyInfo.DataArea
SalesAgreementIdID of the sales agreement.String (20)
SalesAgreementId
NoYesSalesAgreementHeader.SalesNumberSequence
AgreementCustomerAccountNumberCustomer account that the agreement is for.String (20)
CustAccount
YesYesCustTable.AccountNumSalesAgreementHeader.CustAccount
SalesAgreementClassificationRecIdClassification of the agreement.Int64
AgreementClassificationRecId
YesNo (private)AgreementClassification.RecIdAgreementHeader.AgreementClassification
SalesAgreementClassificationNameName of the agreement classification.String (60)
Name
YesYesAgreementClassification.Name
AgreementStatusStatus of the agreement: on hold, effective or closed.Enum
AgreementState
  • OnHold 0
  • Effective 1
  • Closed 2
NoYesAgreementHeader.AgreementState
CurrencyCodeCurrency code of the agreement.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeAgreementHeader.Currency
DefaultEffectiveDateDefault effective date for new agreement lines.Date
EffectiveDate
NoYesAgreementHeader.DefaultAgreementLineEffectiveDate
DefaultExpirationDateDefault expiry date for new agreement lines.Date
ExpirationDate
NoYesAgreementHeader.DefaultAgreementLineExpirationDate
DefaultCommitmentTypeDefault commitment type for new lines, such as quantity or value.Enum
CommitmentType
  • ProductQuantity 0
  • ProductVolume 1
  • ProductCategory 2
  • ProductRootCategory 3
NoYesAgreementHeader.DefaultAgreementLineType
DefaultLedgerDimensionDefault financial dimension values for the agreement.Int64
LedgerDefaultDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdAgreementHeader.DefaultDimension
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
ExternalDocumentReferenceReference to an external document.String (60)
AgreementDocumentExternalReference
NoYesAgreementHeader.DocumentExternalReference
DocumentTitleTitle of the agreement document.String (20)
AgreementDocumentTitle
NoYesAgreementHeader.DocumentTitle
LanguageIdLanguage of the agreement.String (7)
LanguageId
NoYesLanguageTable.LanguageIdAgreementHeader.Language
PreparerRecIdPerson recorded as the reference for the agreement.Int64
RefRecId
NoNo (private)DirPerson.RecIdAgreementHeader.Originator
PreparerPersonPartyNumberUnique ID of the party. It is the key of the table.String (40)
DirPartyNumber
NoYesDirPartyTable.PartyNumber
CustomerPaymentMethodNameDefault method of payment for the customer.String
CustPaymMode
NoYesCustPaymModeTable.PaymModeSalesAgreementHeaderDefault.CustomerMethodOfPayment
CustomerPaymentMethodSpecificationNameDefault payment specification.String
CustPaymSpec
NoYesCustPaymModeSpec.SpecificationSalesAgreementHeaderDefault.CustomerPaymentSpec
SalesOrderPoolIdDefault order pool.String
SalesPoolId
NoYesSalesPool.SalesPoolIdSalesAgreementHeaderDefault.SalesPool
InvoiceCustomerAccountNumberCustomer account to invoice by default.String (20)
CustInvoiceAccount
NoYesCustTable.AccountNumSalesAgreementHeaderDefault.CustomerInvoiceAccount
ContactPersonIdDefault contact person ID, pointing to the contact record.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdAgreementHeaderDefault.ContactPerson
DeliveryModeCodeDefault mode of delivery, pointing to the delivery mode record.String
DlvModeId
NoYesDlvMode.CodeAgreementHeaderDefault.DeliveryMode
DeliveryTermsCodeDefault terms of delivery, pointing to the delivery terms record.String
DlvTermId
NoYesDlvTerm.CodeAgreementHeaderDefault.DeliveryTerm
ShippingCarrierIdShipping carrier code, pointing to the carrier record.String (20)
TMSCarrierCode
NoYesTMSCarrier.CarrierCodeTMSSalesAgreementHeader.CarrierCode
ShippingCarrierServiceGroupIdCarrier group code, pointing to the carrier group record.String (20)
TMSCarrierGroupCode
NoYesTMSCarrierGroup.CarrierGroupCodeTMSSalesAgreementHeader.CarrierGroupCode
ShippingCarrierServiceIdCarrier service code. It is matched together with the carrier.String (20)
TMSCarrierServiceCode
NoYesTMSCarrierService.CarrierServiceCodeTMSSalesAgreementHeader.CarrierServiceCode
TransportationModeIdTransportation mode, pointing to the mode record.String (20)
TMSModeCode
NoYesTMSMode.ModeCodeTMSSalesAgreementHeader.ModeCode
TransportationRoutePlanIdRoute plan code, pointing to the route plan record.String (20)
TMSRouteConfigCode
NoYesTMSRouteConfig.RouteConfigCodeTMSSalesAgreementHeader.RouteConfigCode
TransportationTemplateIdTransportation template, pointing to the template record.String (20)
TMSTransportationTemplateId
NoYesTMSTransportationTemplate.TransportationTemplateIdTMSSalesAgreementHeader.TransportationTemplateId
DeliveryAddressNameDefault name used for delivery.String (100)
LogisticsDeliveryName
NoYesAgreementHeaderDefault.DeliveryName
DeliveryPostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)LogisticsPostalAddress.RecId
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
IsDeliveryAddressAgreementSpecificYes/No flag showing whether the delivery address is a one-time address used only for this agreement.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed
FormattedDeliveryAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
DeliveryAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
DeliveryAddressBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
DeliveryAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
DeliveryAddressCityInKanaCity name written in Kana; used for Japan.String (60)
AssetCityKana_JP
NoYesLogisticsPostalAddress.CityKana_JP
DeliveryAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
DeliveryAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
DeliveryAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
DeliveryAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
DeliveryAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
DeliveryAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
DeliveryAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
IsDeliveryAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
DeliveryAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
DeliveryAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
DeliveryAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
DeliveryAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
DeliveryAddressStreetInKanaStreet name written in Kana; used for Japan.String (250)
AssetStreetKana_JP
NoYesLogisticsPostalAddress.StreetKana_JP
DeliveryAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
DeliveryAddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
DeliveryAddressValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (private)LogisticsPostalAddress.ValidTo
DeliveryAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
DeliveryPostalAddressSystem record ID of the default delivery postal address.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdAgreementHeaderDefault.DeliveryPostalAddress
PaymentScheduleNameDefault payment schedule, pointing to the payment schedule record.String (30)
PaymSchedId
NoYesPaymSched.NameAgreementHeaderDefault.PaymentSchedule
PaymentTermsNameDefault terms of payment, pointing to the payment terms record.String (100)
PaymTermId
NoYesPaymTerm.PaymTermIdAgreementHeaderDefault.PaymentTerms
CampaignIdThe campaign that is set by default.String
smmCampaignId
NoYessmmCampaignTable.CampaignIdSalesAgreementHeaderDefault.Campaign
CommissionCustomerGroupIdDefault commission group for the customer.String
CommissCustomerGroup
NoYesCommissionCustomerGroup.GroupIdSalesAgreementHeaderDefault.CommissionCustomerGroup
CommissionSalesRepresentativeGroupIdDefault sales commission group.String
CommissSalesGroup
NoYesCommissionSalesGroup.GroupIdSalesAgreementHeaderDefault.CommissionSalesGroup
CustomerRequisitionNumberThe customer's own requisition or purchase order reference.String (20)
CustPurchaseOrder
NoYesSalesAgreementHeaderDefault.CustomerRequisitionNumber
FixedExchangeRateA fixed exchange rate to use by default.Real
SalesFixedExchRate
NoYesSalesAgreementHeaderDefault.FixedExchangeRate
WillRebateCalculationExcludeLineByDefaultYes/No flag to leave the order out of rebates.Enum
PdsExcludeFromRebate
NoYes

Platform enum: values not in the metadata extract.

NoYesSalesAgreementHeaderDefault.PdsExcludeFromRebate
SalesUnitIdDefault sales management unit.String (20)
smmSalesUnitId
NoYessmmSalesUnit.SalesUnitIdSalesAgreementHeaderDefault.SalesUnit
SalesResponsibleThe worker who is responsible for the sale.Int64
WorkerSalesResponsible
NoNo (private)HcmWorker.RecIdSalesAgreementHeaderDefault.WorkerSalesResponsible
OrderResponsiblePersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
CustomerReferenceName of the external contact or reference person.String (60)
PersonName
NoYesAgreementHeaderDefault.ExternalReference
ChargeCustomerGroupIdDefault charges group, pointing to the charges group record.String
MarkupGroupId
NoYesMarkupGroup.GroupIdAgreementHeaderDefault.MiscChargeGroup
ProjectIdDefault project ID, pointing to the project record.String (20)
ProjId
NoYesProjTable.ProjIdAgreementHeaderDefault.Project
CashDiscountCodeDefault cash discount code, pointing to the cash discount record.String
CashDiscCode
NoYesCashDisc.CashDiscCodeAgreementHeaderDefault.CashDiscountCode
CommissionAgreementShows whether this is a commission agreement: none, purchase by commissioner or sale by commissioner.Enum
AgencyAgreement_RU
  • None 0
  • PurchaseCommission 1
  • SaleCommission 2
NoYesAgreementHeaderExt_RU.AgencyAgreement
AgreementSumTotal sum of the agreement.Real
AgreementAmount_RU
NoYesAgreementHeaderExt_RU.AgreementAmount
AgreementDateDate of the agreement.Date
AgreementDate_RU
NoYesAgreementHeaderExt_RU.AgreementDate
SubjectOfAnAgreementFree text describing what the agreement is about.String (-1)
AgreementSubject_RU
NoYesAgreementHeaderExt_RU.AgreementSubject
AgreementVatAmountVAT amount of the agreement.Real
AgreementVatAmount_RU
NoYesAgreementHeaderExt_RU.AgreementVatAmount
MobilePhoneMobile phone number for the agreement contact.String (20)
PhoneMobile
NoYesAgreementHeaderExt_RU.CellularPhone
CreditLimitMaximum credit allowed for this agreement (in accounting currency).Real
CreditMaxMST
NoYesAgreementHeaderExt_RU.CreditMax
InventoryProfileInventory profile linked to the agreement.String
InventProfileId_RU
NoYesInventProfile_RU.InventProfileIdAgreementHeaderExt_RU.InventProfileId
KindOfActivityKind of activity, such as basic, commission agent, principal's agent or bailee.Enum
InventProfileType_RU
  • NotSpecified 0
  • General 1
  • CommissionAgent 41
  • CommissionPrincipalAgent 43
  • Bailee 44
NoYesAgreementHeaderExt_RU.InventProfileType
LineOfBusinessLine of business linked to the agreement.String
LineOfBusinessId
NoYesLineOfBusiness.LineOfBusinessIdAgreementHeaderExt_RU.LineOfBusinessId
PaymDayPayment day setting linked to the agreement.String
PaymDayId
NoYesPaymDay.PaymDayIdAgreementHeaderExt_RU.PaymDayId
TelephoneTelephone number for the agreement contact.String (20)
Phone
NoYesAgreementHeaderExt_RU.Phone
ExtensionTelephone extension number.String
PhoneLocal
NoYesAgreementHeaderExt_RU.PhoneLocal
FaxFax number for the agreement contact.String (20)
TeleFax
NoYesAgreementHeaderExt_RU.TeleFax
TelexNumberTelex number for the agreement contact.String (20)
Telex
NoYesAgreementHeaderExt_RU.Telex
InternetAddressInternet address for the agreement contact.String (255)
URL
NoYesAgreementHeaderExt_RU.Url
PostingTypePosting type for the sales invoice: standard or postponed passing of property.Enum
SalesInvoicePostingType_RU
  • Standard 0
  • GoodsInRoute 1
NoYesSalesAgreementHeaderExt_RU.SalesInvoicePostingType
PostingProfileCustomer posting profile used for the agreement.String
CustPostingProfile
NoYesCustLedger.PostingProfileSalesAgreementHeaderExt_RU.CustPostingProfile
PostingProfileWithPrepaymentJournalVoucherCustomer posting profile used with a prepayment journal voucher.String
CustPostingProfile
NoYesCustLedger.PostingProfileSalesAgreementHeaderExt_RU.CustPrepaymentPostingProfile
AmountDifferenceInTaxAccountingYes or no flag for amount difference in tax accounting.Enum
TaxAmountDifference_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.TaxAmountDifference
ExcludeFromReserveInBusinessAccountingYes or no flag to leave this agreement out of the reserve in business accounting.Enum
ExcludeReserveCalc_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.ExcludeReserveCalc
ExcludeFromReserveInTaxAccountingYes or no flag to leave this agreement out of the reserve in tax accounting.Enum
ExcludeReserveCalc_RU
NoYes

Platform enum: values not in the metadata extract.

NoYesAgreementHeaderExt_RU.ExcludeReserveCalcTax
ReportingCurrencyFixedExchangeRateAn exchange rate value labelled 'Exchange rate'; the currency is not stated in the metadata.low confidenceReal
CustExchRate
NoYesSalesAgreementHeaderDefault.ReportingCurrencyFixedExchRate

Foreign keys (39)

Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.

  • SellingLegalEntityRecId → CompanyInfo.RecId (key of CompanyInfo)

    Many SalesAgreementHeader records → exactly one CompanyInfo record

    CompanyInfo details: see BusinessDocumentSalesInvoiceBaseEntity, TrvExpMobileCompanyInfoV2Entity, OMLegalEntity

  • AgreementCustomerAccountNumber → CustTable.AccountNum (key of CustTable)

    Join on all of: AgreementCustomerAccountNumber = CustTable.AccountNum, CustomerDataAreaId (table field, not in this entity) = CustTable.dataAreaId

    Many SalesAgreementHeader records → exactly one CustTable record

    CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity

  • SalesAgreementClassificationRecId → AgreementClassification.RecId (key of AgreementClassification)

    Many AgreementHeader records → exactly one AgreementClassification record

    AgreementClassification details: see CLMIntegrationPurchaseAgreementHeaderEntity, PurchPurchaseAgreementConfirmationHeaderEntity, PurchPurchaseAgreementHeaderV2Entity

  • CurrencyCode → Currency.CurrencyCode (key of Currency)

    Many AgreementHeader records → exactly one Currency record

    Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity

  • DefaultLedgerDimension → DimensionAttributeValueSet.RecId (key of DimensionAttributeValueSet)

    Many AgreementHeader records → zero or one DimensionAttributeValueSet record

    DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity

  • LanguageId → LanguageTable.LanguageId (key of LanguageTable)

    Relation also requires LanguageTable.LabelFile = 1.

    Many AgreementHeader records → zero or one LanguageTable record

    LanguageTable details: see ConfirmingPOEntity, MainAccountTranslationEntity, RetailCatalogTranslationEntity

  • PreparerRecId → DirPerson.RecId (key of DirPerson)

    Many AgreementHeader records → exactly one DirPerson record

    DirPerson details: see CustCustomerBaseEntity, CustFoundationEntity, DirPartyCDSEntity

  • CustomerPaymentMethodName → CustPaymModeTable.PaymMode (key of CustPaymModeTable)

    Join on all of: CustomerPaymentMethodName = CustPaymModeTable.PaymMode, CustomerMethodOfPaymentDataAreaId (table field, not in this entity) = CustPaymModeTable.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one CustPaymModeTable record

    CustPaymModeTable details: see CustomerPaymentMethodEntity, BankCustPaymModeBankAccountsEntity, CustPaymModeTableBiEntity

  • CustomerPaymentMethodSpecificationName → CustPaymModeSpec.Specification (key of CustPaymModeSpec)

    Join on all of: CustomerPaymentMethodSpecificationName = CustPaymModeSpec.Specification, CustomerPaymentSpecDataAreaId (table field, not in this entity) = CustPaymModeSpec.dataAreaId, CustomerPaymentMethodName = CustPaymModeSpec.PaymMode

    Many SalesAgreementHeaderDefault records → zero or one CustPaymModeSpec record

    CustPaymModeSpec details: see CustomerPaymentMethodSpecificationEntity

  • SalesOrderPoolId → SalesPool.SalesPoolId (key of SalesPool)

    Join on all of: SalesOrderPoolId = SalesPool.SalesPoolId, SalesPoolDataAreaId (table field, not in this entity) = SalesPool.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one SalesPool record

    SalesPool details: see SalesOrderPoolEntity

  • InvoiceCustomerAccountNumber → CustTable.AccountNum (key of CustTable)

    Join on all of: InvoiceCustomerAccountNumber = CustTable.AccountNum, CustomerInvoiceAccountDataAreaId (table field, not in this entity) = CustTable.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one CustTable record

    CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity

  • ContactPersonId → ContactPerson.ContactPersonId (key of ContactPerson)

    Join on all of: ContactPersonId = ContactPerson.ContactPersonId, ContactPersonDataAreaId (table field, not in this entity) = ContactPerson.dataAreaId

    Many AgreementHeaderDefault records → zero or one ContactPerson record

    ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity

  • DeliveryModeCode → DlvMode.Code (key of DlvMode)

    Join on all of: DeliveryModeCode = DlvMode.Code, DeliveryModeDataAreaId (table field, not in this entity) = DlvMode.dataAreaId

    Many AgreementHeaderDefault records → zero or one DlvMode record

    DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity

  • DeliveryTermsCode → DlvTerm.Code (key of DlvTerm)

    Join on all of: DeliveryTermsCode = DlvTerm.Code, DeliveryTermDataAreaId (table field, not in this entity) = DlvTerm.dataAreaId

    Many AgreementHeaderDefault records → zero or one DlvTerm record

    DlvTerm details: see DeliveryTermsEntity, VRMDeliveryTermsEntity

  • ShippingCarrierId → TMSCarrier.CarrierCode (key of TMSCarrier)

    Many TMSSalesAgreementHeader records → zero or one TMSCarrier record

    TMSCarrier details: see TMSShippingCarrierEntity, TMSTransportationAppointmentDriverLogEntity, TMSTransportationAppointmentEntity

  • ShippingCarrierServiceGroupId → TMSCarrierGroup.CarrierGroupCode (key of TMSCarrierGroup)

    Many TMSSalesAgreementHeader records → zero or one TMSCarrierGroup record

    TMSCarrierGroup details: see TMSShippingCarrierServiceGroupEntity

  • ShippingCarrierServiceId → TMSCarrierService.CarrierServiceCode (key of TMSCarrierService)

    Join on all of: ShippingCarrierServiceId = TMSCarrierService.CarrierServiceCode, ShippingCarrierId = TMSCarrierService.CarrierCode

    Many TMSSalesAgreementHeader records → zero or one TMSCarrierService record

    TMSCarrierService details: see TMSShippingCarrierServiceEntity

  • TransportationModeId → TMSMode.ModeCode (key of TMSMode)

    Many TMSSalesAgreementHeader records → zero or one TMSMode record

    TMSMode details: see TMSTransportationModeEntity

  • TransportationRoutePlanId → TMSRouteConfig.RouteConfigCode (key of TMSRouteConfig)

    Many TMSSalesAgreementHeader records → zero or one TMSRouteConfig record

    TMSRouteConfig details: see TMSTransportationRoutePlanEntity

  • TransportationTemplateId → TMSTransportationTemplate.TransportationTemplateId (key of TMSTransportationTemplate)

    Many TMSSalesAgreementHeader records → zero or one TMSTransportationTemplate record

    Not exposed by a public entity.

  • DeliveryAddressCountryRegionId → LogisticsAddressCountryRegion.CountryRegionId (key of LogisticsAddressCountryRegion)

    Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record

    LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity

  • DeliveryAddressCountyId → LogisticsAddressCounty.CountyId (key of LogisticsAddressCounty)

    Join on all of: DeliveryAddressCountyId = LogisticsAddressCounty.CountyId, DeliveryAddressCountryRegionId = LogisticsAddressCounty.CountryRegionId, DeliveryAddressStateId = LogisticsAddressCounty.StateId

    Many LogisticsPostalAddress records → zero or one LogisticsAddressCounty record

    LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity

  • DeliveryAddressStateId → LogisticsAddressState.StateId (key of LogisticsAddressState)

    Join on all of: DeliveryAddressStateId = LogisticsAddressState.StateId, DeliveryAddressCountryRegionId = LogisticsAddressState.CountryRegionId

    Many LogisticsPostalAddress records → zero or one LogisticsAddressState record

    LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity

  • DeliveryPostalAddress → LogisticsPostalAddress.RecId (key of LogisticsPostalAddress)

    Many AgreementHeaderDefault records → zero or one LogisticsPostalAddress record

    LogisticsPostalAddress details: see CustCustomerV3Entity, InventTransferOrderHeaderEntity, TMSFreightBillDetailEntity

  • PaymentScheduleName → PaymSched.Name (key of PaymSched)

    Join on all of: PaymentScheduleName = PaymSched.Name, PaymentScheduleDataAreaId (table field, not in this entity) = PaymSched.dataAreaId

    Many AgreementHeaderDefault records → zero or one PaymSched record

    PaymSched details: see PaymentScheduleEntity

  • PaymentTermsName → PaymTerm.PaymTermId (key of PaymTerm)

    Join on all of: PaymentTermsName = PaymTerm.PaymTermId, PaymentTermsDataAreaId (table field, not in this entity) = PaymTerm.dataAreaId

    Many AgreementHeaderDefault records → zero or one PaymTerm record

    PaymTerm details: see PaymentTermEntity, CredManPaymTermRankEntity, TaxWithholdSettlementPeriodEntity

  • CampaignId → smmCampaignTable.CampaignId (key of smmCampaignTable)

    Join on all of: CampaignId = smmCampaignTable.CampaignId, CampaignDataAreaId (table field, not in this entity) = smmCampaignTable.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one smmCampaignTable record

    smmCampaignTable details: see DimAttributeSmmCampaignTableEntity

  • CommissionCustomerGroupId → CommissionCustomerGroup.GroupId (key of CommissionCustomerGroup)

    Join on all of: CommissionCustomerGroupId = CommissionCustomerGroup.GroupId, CommissionCustomerGroupDataAreaId (table field, not in this entity) = CommissionCustomerGroup.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one CommissionCustomerGroup record

    Not exposed by a public entity.

  • CommissionSalesRepresentativeGroupId → CommissionSalesGroup.GroupId (key of CommissionSalesGroup)

    Join on all of: CommissionSalesRepresentativeGroupId = CommissionSalesGroup.GroupId, CommissionSalesGroupDataAreaId (table field, not in this entity) = CommissionSalesGroup.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one CommissionSalesGroup record

    Not exposed by a public entity.

  • SalesUnitId → smmSalesUnit.SalesUnitId (key of smmSalesUnit)

    Join on all of: SalesUnitId = smmSalesUnit.SalesUnitId, SalesUnitDataAreaId (table field, not in this entity) = smmSalesUnit.dataAreaId

    Many SalesAgreementHeaderDefault records → zero or one smmSalesUnit record

    Not exposed by a public entity.

  • SalesResponsible → HcmWorker.RecId (key of HcmWorker)

    Many SalesAgreementHeaderDefault records → zero or one HcmWorker record

    HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity

  • ChargeCustomerGroupId → MarkupGroup.GroupId (key of MarkupGroup)

    Join on all of: ChargeCustomerGroupId = MarkupGroup.GroupId, MiscChargeGroupDataAreaId (table field, not in this entity) = MarkupGroup.dataAreaId, MiscChargeGroupApplicationModule (table field, not in this entity) = MarkupGroup.Module

    Many AgreementHeaderDefault records → zero or one MarkupGroup record

    MarkupGroup details: see CustChargeCustomerGroupEntity, DlvChargeDeliveryGroupEntity

  • ProjectId → ProjTable.ProjId (key of ProjTable)

    Join on all of: ProjectId = ProjTable.ProjId, ProjectDataAreaId (table field, not in this entity) = ProjTable.dataAreaId

    Many AgreementHeaderDefault records → zero or one ProjTable record

    ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity

  • CashDiscountCode → CashDisc.CashDiscCode (key of CashDisc)

    Join on all of: CashDiscountCode = CashDisc.CashDiscCode, CashDiscountDataAreaId (table field, not in this entity) = CashDisc.dataAreaId

    Many AgreementHeaderDefault records → zero or one CashDisc record

    CashDisc details: see CashDiscountEntity, CredManCashDiscRankEntity, CashDiscBiEntity

  • InventoryProfile → InventProfile_RU.InventProfileId (key of InventProfile_RU)

    Many AgreementHeaderExt_RU records → exactly one InventProfile_RU record

    InventProfile_RU details: see InventInventoryProfileEntity, InventInventoryProfileRelationEntity, InventInventoryProfileCustomerVendorLedgerEntity

  • LineOfBusiness → LineOfBusiness.LineOfBusinessId (key of LineOfBusiness)

    Many AgreementHeaderExt_RU records → exactly one LineOfBusiness record

    LineOfBusiness details: see LineOfBusinessEntity

  • PaymDay → PaymDay.PaymDayId (key of PaymDay)

    Many AgreementHeaderExt_RU records → exactly one PaymDay record

    PaymDay details: see PaymentDayCdsEntity, PaymentDayEntity

  • PostingProfile → CustLedger.PostingProfile (key of CustLedger)

    Many SalesAgreementHeaderExt_RU records → exactly one CustLedger record

    CustLedger details: see CustCustomerPostingProfileHeaderEntity, CustCustomerPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity

  • PostingProfileWithPrepaymentJournalVoucher → CustLedger.PostingProfile (key of CustLedger)

    Many SalesAgreementHeaderExt_RU records → exactly one CustLedger record

    CustLedger details: see CustCustomerPostingProfileHeaderEntity, CustCustomerPostingProfileLineEntity, InventInventoryProfileCustomerVendorLedgerEntity

Need help with SalesAgreementHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk