Data entity

PurchPurchaseAgreementHeaderAIEntity

Read-only purchase agreement headers, with one record per purchase agreement ID. It holds the vendor account, status, currency, validity dates and default commitment. It also holds the title, language and payment terms. The name suggests it is meant for AI scenarios, and it is not available in data management.

Entity name
PurchPurchaseAgreementHeaderAIEntity
Public entity name
PurchaseAgreementHeaderForAI
OData collection
PurchaseAgreementHeadersForAI
Category
Not set
Module
Procurement and sourcing
Read-only
Yes
Data management enabled
No
Configuration key
TradeBlanketOrder
Keys
PurchaseAgreementId
Staging table
None

Use it in Power BI and Power Platform

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

Data sources

  • PurchAgreementHeader · root
  • PurchAgreementHeaderDefault · OuterJoin to PurchAgreementHeader

Fields (13)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
PurchaseAgreementIdIdentifier of the purchase agreement.String (20)
PurchAgreementId
NoYesPurchAgreementHeader.PurchNumberSequence
AgreementVendorAccountNumberVendor account on the agreement. It points to the vendor record.String (20)
VendAccount
YesYesVendTable.AccountNumPurchAgreementHeader.VendAccount
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
DocumentTitleTitle of the agreement document.String (20)
AgreementDocumentTitle
NoYesAgreementHeader.DocumentTitle
LanguageIdLanguage of the agreement.String (7)
LanguageId
NoYesLanguageTable.LanguageIdAgreementHeader.Language
VendorPaymentMethodNameVendor method of payment that is used by default.String
VendPaymMode
NoYesVendPaymModeTable.PaymModePurchAgreementHeaderDefault.MethodOfPayment
VendorPaymentMethodSpecificationNamePayment specification that is used by default.String
VendPaymSpec
NoYesVendPaymModeSpec.SpecificationPurchAgreementHeaderDefault.PaymentSpecification
AgreementCreatedDateTimeThe date and time when the record was created.UtcDateTime
CreatedDateTime
NoYesAgreementHeader.CreatedDateTime
AgreementVendorDataAreaIdCompany of the vendor account. It is used together with the vendor account to find the vendor.String
DataAreaId
NoYesPurchAgreementHeader.VendorDataAreaId

Foreign keys (5)

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.

  • AgreementVendorAccountNumber → VendTable.AccountNum (key of VendTable)

    Join on all of: AgreementVendorAccountNumber = VendTable.AccountNum, AgreementVendorDataAreaId = VendTable.dataAreaId

    Many PurchAgreementHeader records → exactly one VendTable record

    VendTable details: see VendVendorV2Entity, RetailVendVendorV3Entity, VendVendorEntity

  • CurrencyCode → Currency.CurrencyCode (key of Currency)

    Many AgreementHeader records → exactly one Currency record

    Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity

  • 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

  • VendorPaymentMethodName → VendPaymModeTable.PaymMode (key of VendPaymModeTable)

    Join on all of: VendorPaymentMethodName = VendPaymModeTable.PaymMode, MethodOfPaymentDataAreaId (table field, not in this entity) = VendPaymModeTable.dataAreaId

    Many PurchAgreementHeaderDefault records → zero or one VendPaymModeTable record

    VendPaymModeTable details: see VendorPaymentMethodEntity, BankVendPaymModeBankAccountsEntity, VendPaymModeTableCDREntity

  • VendorPaymentMethodSpecificationName → VendPaymModeSpec.Specification (key of VendPaymModeSpec)

    Join on all of: VendorPaymentMethodSpecificationName = VendPaymModeSpec.Specification, PaymentSpecificationDataAreaId (table field, not in this entity) = VendPaymModeSpec.dataAreaId, VendorPaymentMethodName = VendPaymModeSpec.PaymMode

    Many PurchAgreementHeaderDefault records → zero or one VendPaymModeSpec record

    VendPaymModeSpec details: see VendorPaymentMethodSpecificationEntity

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

Email sales@drdynamics.co.uk