Data entity
SalesAgreementLineEntity
Holds the lines of sales agreements, keyed by sales agreement ID and line number. Each line sets a commitment type for an item or procurement category. It shows committed quantity or amount, price, discount, release limits and validity dates.
- Entity name
SalesAgreementLineEntity- Public entity name
SalesAgreementLine- OData collection
SalesAgreementLines- Category
Document- Module
Sales and marketing- Read-only
No- Data management enabled
Yes- Configuration key
TradeBlanketOrder- Keys
SalesAgreementId, LineNumber- Staging table
SalesAgreementLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/SalesAgreementLines- Dataverse virtual table
mserp_salesagreementlineentity. 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
AgreementLine· rootSalesAgreementHeader· InnerJoin toAgreementLine· read-onlyCompanyInfo· InnerJoin toSalesAgreementHeader· read-onlySalesAgreementHeaderDefault· OuterJoin toSalesAgreementHeaderAgreementLineDefault· OuterJoin toAgreementLineDefaultLedgerDimensionDAVS(tableDimensionSetEntity) · OuterJoin toAgreementLine· read-onlyEcoResCategory_SalesCategory(tableEcoResCategory) · OuterJoin toAgreementLine· read-onlyEcoResCategory_PCClass(tablePCClass) · Derived toEcoResCategory_SalesCategoryInventDim· OuterJoin toAgreementLine· read-onlyAgreementLine_AgreementLineQuantityCommitment(tableAgreementLineQuantityCommitment) · Derived toAgreementLineAgreementLine_AgreementLineVolumeCommitment(tableAgreementLineVolumeCommitment) · Derived toAgreementLine
Fields (42)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
SalesAgreementRecIdAgreement header the line belongs to. | Int64AgreementHeaderRecId | Yes | No (private) | AgreementHeader.RecId | AgreementLine.Agreement |
SalesAgreementLegalEntityIdCompany ID of the legal entity. It is the key. | StringSelectableDataArea | Yes | Yes | CompanyInfo.DataArea | |
SalesAgreementIdID of the sales agreement. | String (20)SalesAgreementId | Yes | Yes | SalesAgreementHeader.SalesNumberSequence | |
LineNumberLine number within the agreement. | RealAgreementLineNum_PSN | Yes | Yes | AgreementLine.LineNumber | |
CommitmentTypeCommitment type of the line, such as quantity or value. | Enum
| No | Yes | AgreementLine.AgreementLineType | |
ItemNumberItem number of the line. | String (20)ItemId | No | Yes | InventTable.ItemId | AgreementLine.ItemId |
SalesProductCategoryRecIdProcurement category of the line. | Int64RefRecId | No | No (private) | EcoResCategory.RecId | AgreementLine.Category |
SalesProductCategoryNameName of the category. | String (254)EcoResCategoryName | No | Yes | EcoResCategory.Name | |
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 |
ShippingSiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ShippingWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
InventoryProfileIdInventory profile; used for Russia. | StringInventProfileId_RU | No | Yes | InventProfile_RU.InventProfileId | InventDim.InventProfileId_RU |
CommittedCatchWeightQuantityCommitted quantity in catch weight units. | RealPdsCWCommitedQuantity | No | Yes | AgreementLineQuantityCommitment.PdsCWCommitedQuantity | |
CommittedQuantityQuantity committed on the agreement line. | RealAgreementCommitedQuantity | No | Yes | AgreementLineQuantityCommitment.CommitedQuantity | |
UnitSymbolUnit of measure symbol for the committed quantity. It points to a record in the units table. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | AgreementLineQuantityCommitment.ProductUnitOfMeasure |
CommittedAmountMoney amount committed on the agreement line. | RealAgreementCommitedMonetaryAmount | No | Yes | AgreementLineVolumeCommitment.CommitedAmount | |
PriceAgreed price for one price unit on the line. | RealAgreementPricePerUnit | No | Yes | AgreementLineQuantityCommitment.PricePerUnit | |
PriceQuantityNumber of units that the unit price applies to. | RealPriceUnit | No | Yes | AgreementLineQuantityCommitment.PriceUnit | |
LineDiscountPercentageDiscount percentage for the line. | RealAgreementDiscPercent | No | Yes | AgreementLine.LineDiscountPercent | |
LineDiscountAmountDiscount amount given per unit on the line. | RealUnitDiscountAmountCur | No | Yes | AgreementLineQuantityCommitment.LineDiscountAmount | |
IsPriceAndDiscountFixedYes/no flag showing price and discount are fixed. | EnumIsPriceInfoMandatory
| No | Yes | AgreementLine.IsPriceInformationMandatory | |
EffectiveDateDate the line becomes effective. | DateEffectiveDate | No | Yes | AgreementLine.EffectiveDate | |
ExpirationDateDate the line expires. | DateExpirationDate | No | Yes | AgreementLine.ExpirationDate | |
IsCommitmentMaximumEnforcedYes/no flag showing the maximum is enforced. | EnumIsMaxEnforced
| No | Yes | AgreementLine.IsMaxEnforced | |
MinimumReleaseAmountSmallest amount allowed for one release. | RealAgreementMinimumReleaseAmount | No | Yes | AgreementLine.AgreedReleaseLineMinAmount | |
MaximumReleaseAmountLargest amount allowed for one release. | RealAgreementMaximumReleaseAmount | No | Yes | AgreementLine.AgreedReleaseLineMaxAmount | |
DefaultLedgerDimensionDefault financial dimension values for the line. | Int64LedgerDefaultDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | AgreementLine.DefaultDimension |
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
ProjectIdProject ID linked to the line. | String (20)ProjId | No | Yes | ProjTable.ProjId | AgreementLine.ProjectProjId |
ProjectActivityNumberActivity number for the project, pointing to the activity record. | String (50)ProjActivityNumber | No | Yes | smmActivities.ActivityNumber | AgreementLineDefault.ProjectActivityNumber |
ProjectCategoryIdProject category, pointing to the project category record. | String (30)ProjCategoryId | No | Yes | ProjCategory.CategoryId | AgreementLineDefault.ProjectCategory |
CommissionSalesRepresentativeGroupIdSales commission group, pointing to the commission sales group record. | StringCommissSalesGroup | No | Yes | CommissionSalesGroup.GroupId | AgreementLineDefault.SalesCommissionGroup |
DeliveryModeCodeMode of delivery for sales, pointing to the delivery mode record. | StringDlvModeId | No | Yes | DlvMode.Code | AgreementLineDefault.SalesModeOfDelivery |
WillRebateCalculationExcludeLineYes/no flag showing whether the line is left out of rebates. | EnumPdsExcludeFromRebate
| No | Yes | AgreementLineDefault.PdsExcludeFromRebate | |
AgreementCustomerAccountNumberCustomer account that the agreement is for. | String (20)CustAccount | No | Yes | CustTable.AccountNum | SalesAgreementHeader.CustAccount |
InvoiceCustomerAccountNumberCustomer account to invoice by default. | String (20)CustInvoiceAccount | No | Yes | CustTable.AccountNum | SalesAgreementHeaderDefault.CustomerInvoiceAccount |
KittingBOMIdBill of materials (BOM) ID used for kitting. | String (20)KittingBOMId | No | Yes | AgreementLine.KittingBOMId | |
KittingInventTransIdKit ID linked to the line. | String (20)KittingInventTransId | No | Yes | AgreementLine.KittingInventTransId |
Foreign keys (20)
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.
SalesAgreementRecId→AgreementHeader.RecId(key of AgreementHeader)Many AgreementLine records → exactly one AgreementHeader record
AgreementHeader details: see CLMIntegrationPurchaseAgreementHeaderEntity, PurchPurchaseAgreementHeaderV2Entity, SalesAgreementHeaderEntity
ItemNumber→InventTable.ItemId(key of InventTable)Join on all of:
ItemNumber=InventTable.ItemId,ItemDataAreaId(table field, not in this entity) =InventTable.dataAreaIdMany AgreementLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
SalesProductCategoryRecId→EcoResCategory.RecId(key of EcoResCategory)Many AgreementLine records → zero or one EcoResCategory record
EcoResCategory details: see EcoResProductCategoryEntity, EcoResProductCDSCategoryAssignmentEntity, EcoResProductCDSCategoryEntity
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
ShippingSiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ShippingWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
InventoryProfileId→InventProfile_RU.InventProfileId(key of InventProfile_RU)Many InventDim records → zero or one InventProfile_RU record
InventProfile_RU details: see InventInventoryProfileEntity, InventInventoryProfileRelationEntity, InventInventoryProfileCustomerVendorLedgerEntity
UnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many AgreementLineQuantityCommitment records → exactly one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
DefaultLedgerDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many AgreementLine records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Join on all of:
ProjectId=ProjTable.ProjId,ProjectDataAreaId(table field, not in this entity) =ProjTable.dataAreaIdMany AgreementLine records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjectActivityNumber→smmActivities.ActivityNumber(key of smmActivities)Join on all of:
ProjectActivityNumber=smmActivities.ActivityNumber,ProjectActivityNumberDataAreaId(table field, not in this entity) =smmActivities.dataAreaIdMany AgreementLineDefault records → zero or one smmActivities record
smmActivities details: see DualWriteSmmActivitiesEntity, DualWriteCustomerActivitiesEntity, DualWriteCustomerActivitiesV2Entity
ProjectCategoryId→ProjCategory.CategoryId(key of ProjCategory)Join on all of:
ProjectCategoryId=ProjCategory.CategoryId,ProjectCategoryDataAreaId(table field, not in this entity) =ProjCategory.dataAreaIdMany AgreementLineDefault records → zero or one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
CommissionSalesRepresentativeGroupId→CommissionSalesGroup.GroupId(key of CommissionSalesGroup)Join on all of:
CommissionSalesRepresentativeGroupId=CommissionSalesGroup.GroupId,SalesCommissionGroupDataAreaId(table field, not in this entity) =CommissionSalesGroup.dataAreaIdMany AgreementLineDefault records → zero or one CommissionSalesGroup record
Not exposed by a public entity.
DeliveryModeCode→DlvMode.Code(key of DlvMode)Join on all of:
DeliveryModeCode=DlvMode.Code,SalesModeOfDeliveryDataAreaId(table field, not in this entity) =DlvMode.dataAreaIdMany AgreementLineDefault records → zero or one DlvMode record
DlvMode details: see DlvDeliveryModeEntity, RetailDeliveryModeAddressLineEntity, RetailDeliveryModeChannelLineEntity
AgreementCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Join on all of:
AgreementCustomerAccountNumber=CustTable.AccountNum,CustomerDataAreaId(table field, not in this entity) =CustTable.dataAreaIdMany SalesAgreementHeader records → exactly one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
InvoiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Join on all of:
InvoiceCustomerAccountNumber=CustTable.AccountNum,CustomerInvoiceAccountDataAreaId(table field, not in this entity) =CustTable.dataAreaIdMany SalesAgreementHeaderDefault records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
Need help with SalesAgreementLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.