Data entity
PurchPurchaseOrderLineCDSEntity
Holds purchase order lines for Dataverse integration, keyed by purchase order number and line number. It shows the product, quantity, unit price, discount, net amount, dates, warehouse and a delivery address. It is built on the purchase order line V2 entity.
- Entity name
PurchPurchaseOrderLineCDSEntity- Public entity name
CDSPurchaseOrderLine- OData collection
CDSPurchaseOrderLines- Category
Document- Module
Product information management- Read-only
No- Data management enabled
Yes- Configuration key
CDSIntegration- Keys
PurchaseOrderNumber, LineNumber- Staging table
PurchPurchaseOrderLineCDSStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/CDSPurchaseOrderLines- Dataverse virtual table
mserp_purchpurchaseorderlinecdsentity. 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
PurchPurchaseOrderLineV2Entity· rootPurchTable· InnerJoin toPurchPurchaseOrderLineV2Entity· read-onlyPurchParameters· OuterJoin toPurchPurchaseOrderLineV2Entity· read-onlyEcoResCategory· OuterJoin toPurchPurchaseOrderLineV2Entity· read-onlyEcoResCategory_PCClass(tablePCClass) · Derived toEcoResCategoryEcoResCategoryHierarchy· OuterJoin toPurchPurchaseOrderLineV2Entity· read-onlyInventDistinctProduct· OuterJoin toPurchPurchaseOrderLineV2Entity· read-onlyEcoResDistinctProduct· OuterJoin toInventDistinctProduct· read-onlyEcoResProductSystemLanguage· OuterJoin toEcoResDistinctProduct· read-onlyEcoResProductTranslationToSystemLanguage(tableEcoResProductTranslation) · OuterJoin toEcoResDistinctProduct· read-onlyInventTable· OuterJoin toEcoResDistinctProduct· read-onlyEcoResProductMaster· OuterJoin toInventTable· read-onlyEcoResProductMasterTranslationToSystemLanguage(tableEcoResProductTranslation) · OuterJoin toInventTable· read-onlyEcoResDistinctProduct_EcoResDistinctProductVariant(tableEcoResDistinctProductVariant) · Derived toEcoResDistinctProduct
Fields (49)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
PurchaseOrderNumberNumber of the purchase order that the line belongs to. It points to the purchase order header. | String (20)PurchIdBase | No | Yes | PurchTable.PurchId | PurchLine.PurchId |
ExternalItemNumberThe item number that the vendor uses for this item. | String (20)PurchExternalItemId | No | Yes | PurchLine.ExternalItemId | |
PurchaseOrderLineStatusStatus of the line: None, Open order, Received, Invoiced or Canceled. | Enum
| No | Yes | PurchLine.PurchStatus | |
ConfirmedDeliveryDateDate on which the vendor confirmed the receipt of the goods. | DatePurchLineConfirmedReceiptDate | No | Yes | PurchLine.ConfirmedDlv | |
DeliveryAddressCityName of the city, as text. | String (60)LogisticsAddressCityName | No | Yes | LogisticsPostalAddress.City | |
DeliveryAddressCountryRegionIdThe country or region of the address. | StringLogisticsAddressCountryRegionId | No | Yes | LogisticsAddressCountryRegion.CountryRegionId | LogisticsPostalAddress.CountryRegionId |
DeliveryAddressStateIdState or province code of the address. | StringLogisticsAddressStateId | No | Yes | LogisticsAddressCounty.StateIdLogisticsAddressState.StateId | LogisticsPostalAddress.State |
DeliveryAddressStreetStreet name of the address. | String (250)LogisticsAddressStreet | No | Yes | LogisticsPostalAddress.Street | |
DeliveryAddressStreetNumberStreet or house number. | String (20)LogisticsAddressStreetNumber | No | Yes | LogisticsPostalAddress.StreetNumber | |
DeliveryAddressZipCodeZIP or postal code, as text. | StringLogisticsAddressZipCodeId | No | Yes | LogisticsPostalAddress.ZipCode | |
FormattedDelveryAddressDelivery address built as one text string.low confidence | String (250) | No | Yes | None | |
RequestedDeliveryDateReceipt date requested for the goods on this line. | DatePurchLineRequestedReceiptDate | No | Yes | PurchLine.DeliveryDate | |
LineDiscountAmountDiscount value on the line. | RealPurchLineDisc | No | Yes | PurchLine.LineDisc | |
PurchasePricePrice for one price unit of the item. | RealPurchPrice | No | Yes | PurchLine.PurchPrice | |
PurchasePriceQuantityNumber of units that the unit price applies to. | RealPriceUnit | No | Yes | PurchLine.PriceUnit | |
PurchaseUnitSymbolUnit of measure used for the purchase quantity. | StringPurchUnit | No | Yes | UnitOfMeasure.Symbol | PurchLine.PurchUnit |
OrderedPurchaseQuantityQuantity ordered, in the purchase unit. | RealPurchOrderedQty | No | Yes | PurchLine.PurchQty | |
LineAmountNet amount of the line. | RealPurchLineAmount | No | Yes | PurchLine.LineAmount | |
LineNumberNumber of the line within the purchase order. | Int64TradeLineNumber | No | Yes | PurchLine.LineNumber | |
LineDescriptionFree text description of the line or item. | String (1000)ItemFreeTxt | No | Yes | PurchLine.Name | |
CurrencyCodeCurrency code of the order. | String (3)VendCurrencyCode | No | Yes | Currency.CurrencyCode | PurchTable.CurrencyCode |
ProductNumberProduct number shown to users. It identifies the product. | String (70)EcoResProductDisplayProductNumber | Yes | Yes | EcoResProduct.DisplayProductNumber | |
ProductNameName of the product on the line. | String (60)EcoResProductName | No | Yes | computed | |
ReceivingWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
BarcodeBar code value of the item on the line. | String (80)PurchBarCode | No | Yes | PurchLine.BarCode | |
CatchWeightUnitSymbolUnit used for catch weight. Points to UnitOfMeasure. | StringPdsCWUnitId | No | Yes | UnitOfMeasure.Symbol | PdsCatchWeightItem.PdsCWUnitId |
ConfirmedShippingDateShip date confirmed for the line. | DateSalesShippingDateConfirmed | No | Yes | PurchLine.ShippingDateConfirmed | |
CustomerReferenceCustomer reference text for the line. | String (60)CustRefLine | No | Yes | PurchLine.CustomerRef | |
IsPartialDeliveryPreventedYes/No flag. When set, the line should be delivered in full, with no partial deliveries. | EnumLineComplete
| No | Yes | PurchLine.Complete | |
LineDiscountPercentageLine discount, as a percentage. | RealPurchLinePercent | No | Yes | PurchLine.LinePercent | |
OrderedCatchWeightQuantityOrdered quantity in catch weight units. | RealPdsCWInventQty | No | Yes | PurchLine.PdsCWQty | |
ProcurementProductCategoryNameName of the category. | String (254)EcoResCategoryName | No | Yes | EcoResCategory.Name | |
ProcurementProductCategoryHierachyNameName of the category hierarchy. | String (128)EcoResCategoryHierarchyName | No | Yes | EcoResCategoryHierarchy.Name | |
ProjectIdProject that the line is charged to. It points to a project record. | String (20)ProjId | No | Yes | ProjTable.ProjId | PurchLine.ProjId |
ReceivingSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
RequestedShippingDateShip date requested for the line. | DateSalesShippingDateRequested | No | Yes | PurchLine.ShippingDateRequested | |
RequesterPersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
CustomerRequisitionNumberCustomer requisition number linked to the line. | String (20)CustPurchaseOrder | No | Yes | PurchLine.CustPurchaseOrderFormNum | |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductStyleIdStyle of the product. | StringEcoResItemStyleName | No | Yes | EcoResStyle.Name | InventDim.InventStyleId |
ProductVersionIdVersion of the product. | StringEcoResItemVersionName | No | Yes | EcoResVersion.Name | InventDim.InventVersionId |
ItemBatchNumberBatch number of the inventory. | String (20)InventBatchId | No | Yes | InventDim.inventBatchId | |
OrderedInventoryStatusIdInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
DeliveryAddressDescriptionName or description of the location. | String (60)LogisticsDescription | No | Yes | LogisticsLocation.Description | |
DeliveryAddressNameName of the delivery location or recipient. | String (100)LogisticsDeliveryName | No | Yes | PurchLine.DeliveryName | |
DeliveryAddressLocationIdUnique ID of the location. It is the key of the table. | String (40)LogisticsLocationId | No | Yes | LogisticsLocation.LocationId | |
WorkflowStateWorkflow approval state of the line, from Not submitted to Approved. | Enum
| No | Yes | PurchLine.WorkflowState |
Foreign keys (16)
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.
PurchaseOrderNumber→PurchTable.PurchId(key of PurchTable)Many PurchLine records → exactly one PurchTable record
PurchTable details: see PurchPurchaseOrderHeaderV2Entity, PurchPurchaseOrderHeaderEntity, ProjSubContractPurchaseOrderHeaderEntity
DeliveryAddressCountryRegionId→LogisticsAddressCountryRegion.CountryRegionId(key of LogisticsAddressCountryRegion)Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record
LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity
DeliveryAddressStateId→LogisticsAddressCounty.StateId(key of LogisticsAddressCounty)Join on all of:
DeliveryAddressStateId=LogisticsAddressCounty.StateId,DeliveryAddressCountryRegionId=LogisticsAddressCounty.CountryRegionId,County(table field, not in this entity) =LogisticsAddressCounty.CountyIdMany 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.CountryRegionIdMany LogisticsPostalAddress records → zero or one LogisticsAddressState record
LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity
PurchaseUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PurchLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many PurchTable records → exactly one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
ReceivingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
CatchWeightUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many PdsCatchWeightItem records → exactly one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Many PurchLine records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ReceivingSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductStyleId→EcoResStyle.Name(key of EcoResStyle)Many InventDim records → zero or one EcoResStyle record
EcoResStyle details: see EcoResProductStyleV2Entity, EcoResProductMasterStyleEntity, EcoResProductMasterStyleTranslationEntity
ProductVersionId→EcoResVersion.Name(key of EcoResVersion)Many InventDim records → zero or one EcoResVersion record
EcoResVersion details: see EcoResProductMasterVersionEntity, EcoResProductMasterVersionTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
OrderedInventoryStatusId→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
Need help with PurchPurchaseOrderLineCDSEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.