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· rootPurchAgreementHeaderDefault· OuterJoin toPurchAgreementHeader
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PurchaseAgreementIdIdentifier of the purchase agreement. | String (20)PurchAgreementId | No | Yes | PurchAgreementHeader.PurchNumberSequence | |
AgreementVendorAccountNumberVendor account on the agreement. It points to the vendor record. | String (20)VendAccount | Yes | Yes | VendTable.AccountNum | PurchAgreementHeader.VendAccount |
AgreementStatusStatus of the agreement: on hold, effective or closed. | Enum
| No | Yes | AgreementHeader.AgreementState | |
CurrencyCodeCurrency code of the agreement. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | AgreementHeader.Currency |
DefaultEffectiveDateDefault effective date for new agreement lines. | DateEffectiveDate | No | Yes | AgreementHeader.DefaultAgreementLineEffectiveDate | |
DefaultExpirationDateDefault expiry date for new agreement lines. | DateExpirationDate | No | Yes | AgreementHeader.DefaultAgreementLineExpirationDate | |
DefaultCommitmentTypeDefault commitment type for new lines, such as quantity or value. | Enum
| No | Yes | AgreementHeader.DefaultAgreementLineType | |
DocumentTitleTitle of the agreement document. | String (20)AgreementDocumentTitle | No | Yes | AgreementHeader.DocumentTitle | |
LanguageIdLanguage of the agreement. | String (7)LanguageId | No | Yes | LanguageTable.LanguageId | AgreementHeader.Language |
VendorPaymentMethodNameVendor method of payment that is used by default. | StringVendPaymMode | No | Yes | VendPaymModeTable.PaymMode | PurchAgreementHeaderDefault.MethodOfPayment |
VendorPaymentMethodSpecificationNamePayment specification that is used by default. | StringVendPaymSpec | No | Yes | VendPaymModeSpec.Specification | PurchAgreementHeaderDefault.PaymentSpecification |
AgreementCreatedDateTimeThe date and time when the record was created. | UtcDateTimeCreatedDateTime | No | Yes | AgreementHeader.CreatedDateTime | |
AgreementVendorDataAreaIdCompany of the vendor account. It is used together with the vendor account to find the vendor. | StringDataAreaId | No | Yes | PurchAgreementHeader.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.dataAreaIdMany 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.dataAreaIdMany 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.PaymModeMany 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.