Data entity
SMAServiceOrderLineEntity
Read-only view of service order lines, keyed by service order number and line number. Lines hold item, price, cost, currency, project and posting date details. They also link back to the service agreement and agreement line. It joins workers, financial dimensions, inventory dimensions and the service order header.
- Entity name
SMAServiceOrderLineEntity- Public entity name
ServiceOrderLine- OData collection
ServiceOrderLines- Category
Document- Module
Service management- Read-only
Yes- Data management enabled
Yes- Configuration key
SMAManagement- Keys
ServiceOrderNumber, LineNumber- Staging table
SMAServiceOrderLineStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ServiceOrderLines- Dataverse virtual table
mserp_smaserviceorderlineentity. 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
SMAServiceOrderLine· rootHcmWorker· OuterJoin toSMAServiceOrderLine· read-onlyDefaultDimensionDAVS(tableDimensionSetEntity) · OuterJoin toSMAServiceOrderLine· read-onlyLedgerDimensionDAVC(tableDimensionCombinationEntity) · OuterJoin toSMAServiceOrderLine· read-onlyInventDim· OuterJoin toSMAServiceOrderLine· read-onlySMAServiceOrderTable· InnerJoin toSMAServiceOrderLine· read-only
Fields (59)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
ProjectSalesCurrencyCodeCurrency used for the sales price. | String (3)ProjSalesCurrencyCode | No | Yes | Currency.CurrencyCode | SMAServiceOrderLine.ProjCurrencyCode |
DispatchActivityNumberDispatch activity linked to the line. | String (50)smmActivityId | No | Yes | smmActivities.ActivityNumber | SMAServiceOrderLine.ActivityId |
ProjectActivityNumberActivity number of the linked project activity. | String (50)ProjActivityNumber | No | Yes | smmActivities.ActivityNumber | SMAServiceOrderLine.ActivityNumber |
ServiceAgreementIdService agreement the line belongs to. | StringSMAAgreementId | No | Yes | SMAAgreementTable.AgreementId | SMAServiceOrderLine.AgreementId |
ServiceAgreementLineNumberLine number on the service agreement. | IntegerSMAAgreementLineNum | No | Yes | SMAServiceOrderLine.AgreementLineNum | |
ServiceCustomerAccountNumberCustomer account the service order is for. | String (20)CustAccount | No | Yes | CustTable.AccountNum | SMAServiceOrderTable.CustAccount |
CurrencyCodeCurrency used for the cost price. | String (3)CurrencyCode | No | Yes | Currency.CurrencyCode | SMAServiceOrderLine.CurrencyIdCost |
ScheduledExecutionDateDate the line was calculated. | DateSMADateCalculated | No | Yes | SMAServiceOrderLine.DateCalculated | |
ActualExecutionDatePosting date of the line. | DateSMADateExecution | No | Yes | SMAServiceOrderLine.DateExecution | |
ServicingWindowStartDateStart of the date range for the line. | DateSMADateRangeFrom | Yes | Yes | SMAServiceOrderLine.DateRangeFrom | |
ServicingWindowEndDateEnd of the date range for the line. | DateSMADateRangeTo | Yes | Yes | SMAServiceOrderLine.DateRangeTo | |
DefaultLedgerDimensionDefault financial dimension set for the line. | Int64InventSiteSMAItemLinkedDimensionValueSet | No | No (private) | DimensionAttributeValueSet.RecId | SMAServiceOrderLine.DefaultDimension |
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
LineDescriptionShort description of the line. | String (60)Description | No | Yes | SMAServiceOrderLine.Description | |
LineNoteLonger text describing the service. | String (1000)SMADescription | No | Yes | SMAServiceOrderLine.DescriptionService | |
InvoiceIdInvoice linked to the line. | String (50)InvoiceId | No | Yes | SMAServiceOrderLine.InvoiceId | |
ItemNumberItem on the line. | String (20)ItemId | No | Yes | InventTable.ItemId | SMAServiceOrderLine.ItemId |
ExpenseOffsetLedgerAccountOffset ledger account for the line. | Int64LedgerDimensionAccount | No | No (private) | DimensionAttributeValueCombination.RecId | SMAServiceOrderLine.LedgerDimension |
ExpenseOffsetLedgerAccountDisplayValueFull combination of dimension values, shown as one text string. | String (500)DimensionDisplayValue | No | Yes | None | |
ExpenseOffsetAccountTypeType of the offset account, such as ledger, customer, vendor or project. | Enum
| No | Yes | SMAServiceOrderLine.OffsetAccountTypeExpense | |
LineOriginHow the line was created: by the system, a user or the web. | Enum
| No | Yes | SMAServiceOrderLine.Origin | |
ProjectCategoryIdProject category of the line. | String (30)ProjCategoryId | Yes | Yes | ProjCategory.CategoryId | SMAServiceOrderLine.ProjCategoryId |
ProjectCostPriceCost price of the line. | RealProjCostPriceCost | No | Yes | SMAServiceOrderLine.ProjCostPrice | |
ProjectIdProject linked to the line. | String (20)ProjId | No | Yes | ProjTable.ProjId | SMAServiceOrderLine.ProjId |
ProjectLinePropertyIdProject line property of the line. | StringProjLinePropertyId | Yes | Yes | ProjLineProperty.LinePropertyId | SMAServiceOrderLine.ProjLinePropertyId |
ProjectSalesPriceSales price of the line. | RealProjSalesPriceCost | No | Yes | SMAServiceOrderLine.ProjSalesPrice | |
ProjectTaxGroupCodeSales tax group of the line. | StringProjTaxGroup | No | Yes | TaxGroupHeading.TaxGroup | SMAServiceOrderLine.ProjTaxGroup |
ProjectTaxItemGroupCodeItem sales tax group of the line. | StringProjTaxItemGroup | No | Yes | TaxItemGroupHeading.TaxItemGroup | SMAServiceOrderLine.ProjTaxItemGroup |
ProjectTransactionIdID of the related project transaction (cost, hour or item). | String (20)ProjTransIdBase | No | Yes | ProjCostTrans.TransIdProjEmplTrans.TransIdProjItemTrans.ProjTransIdProjRevenueTrans.TransId | SMAServiceOrderLine.ProjTransId |
ProjectDescriptionDescription text for the project transaction. | String (60)TransTxt | No | Yes | SMAServiceOrderLine.ProjTransTxt | |
ServiceObjectIdService object the line relates to. | String (20)SMAServiceObjectId | No | Yes | SMAServiceObjectTable.ServiceObjectId | SMAServiceOrderLine.ServiceObjectId |
ServiceObjectRelationIdService object relation linked to the line. | String (20)SMAServiceObjectRelationId | No | Yes | SMAServiceOrderLine.ServiceObjectRelationId | |
ServiceOrderNumberService order the line belongs to. | StringSMAServiceOrderId | No | Yes | SMAServiceOrderTable.ServiceOrderId | SMAServiceOrderLine.ServiceOrderId |
LineNumberLine number within the service order. | RealLineNum | No | Yes | SMAServiceOrderLine.ServiceOrderLineNum | |
LineStatusStatus of the line: Created, Posted or Canceled. | Enum
| No | Yes | SMAServiceOrderLine.ServiceOrderStatus | |
ServiceTaskIdService task linked to the line. | StringSMAServiceTaskId | No | Yes | SMAServiceTask.ServiceTaskId | SMAServiceOrderLine.ServiceTaskId |
ServiceEndBeforeTimeLatest time by which the service should end. | TimeSMAEndBeforeTime | No | Yes | SMAServiceOrderLine.ServiceTimeEndBefore | |
ServiceStartAfterTimeEarliest time at which the service should start. | TimeSMAStartAfter | No | Yes | SMAServiceOrderLine.ServiceTimeStartAfter | |
IsLineSignedOffShows whether the line has been signed off. | EnumSMASignOff
| No | Yes | SMAServiceOrderLine.SignOff | |
SalesTaxGroupCodeSales tax group for the expense. | StringTaxGroupJournal | No | Yes | SMAServiceOrderLine.TaxGroupExpense | |
SalesTaxItemGroupCodeItem sales tax group for the expense. | StringTaxGroupJournal | No | Yes | TaxItemGroupHeading.TaxItemGroup | SMAServiceOrderLine.TaxItemGroupExpense |
ActualServiceEndTimeTime the service work finished. | TimeSMAServiceFinishedTime | No | Yes | SMAServiceOrderLine.TimeSheetEndTime | |
ActualServiceStartTimeTime the service work started. | TimeSMAServiceStartedTime | No | Yes | SMAServiceOrderLine.TimeSheetStartTime | |
ServiceTransactionTypeKind of line: Hour, Expense, Item or Fee. | Enum
| No | Yes | SMAServiceOrderLine.TransactionType | |
ItemUnitSymbolUnit of measure for the quantity. | StringUnitOfMeasureSymbol | No | Yes | UnitOfMeasure.Symbol | SMAServiceOrderLine.Unit |
AssignedTechnicianRecIdWorker who carried out the line. | Int64SMAWorker | No | No (private) | HcmWorker.RecId | SMAServiceOrderLine.Worker |
AssignedTechnicianPersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
HoursNumber of hours on the service order line. | RealSMAQuantity | No | Yes | computed | |
ItemQuantityQuantity of items on the service order line. | RealSMAQuantity | No | Yes | computed | |
ExpenseQuantityQuantity of expenses on the service order line. | RealSMAQuantity | No | Yes | computed | |
ProductConfigurationIdConfiguration of the product. | String (50)EcoResItemConfigurationName | No | Yes | EcoResConfiguration.Name | InventDim.configId |
ProductColorIdColour of the product. | StringEcoResItemColorName | No | Yes | EcoResColor.Name | InventDim.InventColorId |
ProductSizeIdSize of the product. | StringEcoResItemSizeName | No | Yes | EcoResSize.Name | InventDim.InventSizeId |
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 | |
ServiceInventorySiteIdSite of the inventory. | StringInventSiteId | No | Yes | InventSite.SiteId | InventDim.InventSiteId |
ServiceInventoryWarehouseIdWarehouse of the inventory. | StringInventLocationId | No | Yes | InventLocation.InventLocationId | InventDim.InventLocationId |
ServiceInventoryStatusIdInventory status of the stock. | StringWHSInventStatusId | No | Yes | WHSInventStatus.InventStatusId | InventDim.InventStatusId |
Foreign keys (32)
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.
ProjectSalesCurrencyCode→Currency.CurrencyCode(key of Currency)Many SMAServiceOrderLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DispatchActivityNumber→smmActivities.ActivityNumber(key of smmActivities)Many SMAServiceOrderLine records → zero or one smmActivities record
smmActivities details: see DualWriteSmmActivitiesEntity, DualWriteCustomerActivitiesEntity, DualWriteCustomerActivitiesV2Entity
ProjectActivityNumber→smmActivities.ActivityNumber(key of smmActivities)Many SMAServiceOrderLine records → zero or one smmActivities record
smmActivities details: see DualWriteSmmActivitiesEntity, DualWriteCustomerActivitiesEntity, DualWriteCustomerActivitiesV2Entity
ServiceAgreementId→SMAAgreementTable.AgreementId(key of SMAAgreementTable)Many SMAServiceOrderLine records → zero or one SMAAgreementTable record
SMAAgreementTable details: see SMAServiceAgreementHeaderEntity
ServiceCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many SMAServiceOrderTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
CurrencyCode→Currency.CurrencyCode(key of Currency)Many SMAServiceOrderLine records → zero or one Currency record
Currency details: see CurrencyNonISOEntity, DenominationEntity, CashDueAnnouncementJournalEntity
DefaultLedgerDimension→DimensionAttributeValueSet.RecId(key of DimensionAttributeValueSet)Many SMAServiceOrderLine records → zero or one DimensionAttributeValueSet record
DimensionAttributeValueSet details: see DimensionAttributeValueSetCDREntity, DimensionSetEntity
ItemNumber→InventTable.ItemId(key of InventTable)Many SMAServiceOrderLine records → zero or one InventTable record
InventTable details: see EcoResReleasedProductV2Entity, EcoResReleasedProductDVEntity, CLMIntegrationReleasedProductEntity
ExpenseOffsetLedgerAccount→DimensionAttributeValueCombination.RecId(key of DimensionAttributeValueCombination)Many SMAServiceOrderLine records → zero or one DimensionAttributeValueCombination record
DimensionAttributeValueCombination details: see LedgerCurrencyParametersEntity, AdvanceAdjustmentParametersEntity, BankDocumentPostingEntity
ProjectCategoryId→ProjCategory.CategoryId(key of ProjCategory)Many SMAServiceOrderLine records → exactly one ProjCategory record
ProjCategory details: see ProjectCategoryEntity, ProjControlCostGroupCategoriesEntity, ResResourceSetupDataEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Many SMAServiceOrderLine records → zero or one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ProjectLinePropertyId→ProjLineProperty.LinePropertyId(key of ProjLineProperty)Many SMAServiceOrderLine records → exactly one ProjLineProperty record
ProjLineProperty details: see ProjProjectLinePropertyEntity, TrvExpMobileProjLinePropertyEntity, ProjBillingTypeLinePropertyEntity
ProjectTaxGroupCode→TaxGroupHeading.TaxGroup(key of TaxGroupHeading)Many SMAServiceOrderLine records → zero or one TaxGroupHeading record
TaxGroupHeading details: see TrvExpMobileTaxGroupEntity, TaxGroupEntity, BusinessDocumentTaxGroupHeadingEntity
ProjectTaxItemGroupCode→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many SMAServiceOrderLine records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
ProjectTransactionId→ProjCostTrans.TransId(key of ProjCostTrans)Join on all of:
ProjectTransactionId=ProjCostTrans.TransId,ProjectId=ProjCostTrans.ProjIdRelation also requires TransactionType = SMATransactionType::Expense.
Many SMAServiceOrderLine records → zero or one ProjCostTrans record
ProjCostTrans details: see ProjExpenseExportEntity
ProjectTransactionId→ProjEmplTrans.TransId(key of ProjEmplTrans)Join on all of:
ProjectTransactionId=ProjEmplTrans.TransId,ProjectId=ProjEmplTrans.ProjIdRelation also requires TransactionType = SMATransactionType::Hour.
Many SMAServiceOrderLine records → zero or one ProjEmplTrans record
Not exposed by a public entity.
ProjectTransactionId→ProjItemTrans.ProjTransId(key of ProjItemTrans)Join on all of:
ProjectTransactionId=ProjItemTrans.ProjTransId,ProjectId=ProjItemTrans.ProjIdRelation also requires TransactionType = SMATransactionType::Item.
Many SMAServiceOrderLine records → zero or one ProjItemTrans record
ProjItemTrans details: see ProjMaterialUsageCreateEntity, ProjVendInvoiceInfoSubLineEntity, ProjItemTransCDREntity
ProjectTransactionId→ProjRevenueTrans.TransId(key of ProjRevenueTrans)Join on all of:
ProjectTransactionId=ProjRevenueTrans.TransId,ProjectId=ProjRevenueTrans.ProjIdRelation also requires TransactionType = SMATransactionType::Fee.
Many SMAServiceOrderLine records → zero or one ProjRevenueTrans record
Not exposed by a public entity.
ServiceObjectId→SMAServiceObjectTable.ServiceObjectId(key of SMAServiceObjectTable)Many SMAServiceOrderLine records → zero or one SMAServiceObjectTable record
SMAServiceObjectTable details: see SMAServiceObjectTableBiEntity
ServiceOrderNumber→SMAServiceOrderTable.ServiceOrderId(key of SMAServiceOrderTable)Many SMAServiceOrderLine records → exactly one SMAServiceOrderTable record
SMAServiceOrderTable details: see SMAServiceOrderHeaderEntity, SMAServiceOrderTableBiEntity
ServiceTaskId→SMAServiceTask.ServiceTaskId(key of SMAServiceTask)Many SMAServiceOrderLine records → zero or one SMAServiceTask record
SMAServiceTask details: see SMAServiceTaskBiEntity
SalesTaxItemGroupCode→TaxItemGroupHeading.TaxItemGroup(key of TaxItemGroupHeading)Many SMAServiceOrderLine records → zero or one TaxItemGroupHeading record
TaxItemGroupHeading details: see TrvExpMobileItemTaxEntity, TaxItemGroupEntity, TaxItemGroupHeadingEntity
ItemUnitSymbol→UnitOfMeasure.Symbol(key of UnitOfMeasure)Many SMAServiceOrderLine records → zero or one UnitOfMeasure record
UnitOfMeasure details: see RetailAttributesLegalEntityLookupEntity, EcoResReleasedDistinctProductCDSEntity, EcoResSellableReleasedProductEntity
AssignedTechnicianRecId→HcmWorker.RecId(key of HcmWorker)Many SMAServiceOrderLine records → zero or one HcmWorker record
HcmWorker details: see TrvExpMobileUserDisplayInfoEntity, BusinessProcessHeaderEntity, HcmInjuryIncidentEntity
ProductConfigurationId→EcoResConfiguration.Name(key of EcoResConfiguration)Many InventDim records → zero or one EcoResConfiguration record
EcoResConfiguration details: see EcoResProductMasterConfigurationEntity, EcoResProductMasterConfigurationTranslationEntity, EcoResProductNumberIdentifiedProductVariantEntity
ProductColorId→EcoResColor.Name(key of EcoResColor)Many InventDim records → zero or one EcoResColor record
EcoResColor details: see EcoResProductColorV2Entity, EcoResProductColorEntity, EcoResProductColorGroupLineEntity
ProductSizeId→EcoResSize.Name(key of EcoResSize)Many InventDim records → zero or one EcoResSize record
EcoResSize details: see EcoResProductSizeV2Entity, EcoResProductMasterSizeEntity, EcoResProductMasterSizeTranslationEntity
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
ServiceInventorySiteId→InventSite.SiteId(key of InventSite)Many InventDim records → zero or one InventSite record
InventSite details: see InventOperationalSiteEntity, InventOperationalSiteV2Entity, ScpDemandPlanningSiteEntity
ServiceInventoryWarehouseId→InventLocation.InventLocationId(key of InventLocation)Many InventDim records → zero or one InventLocation record
InventLocation details: see InventWarehouseEntity, ScpDemandPlanningWarehouseEntity, RetailDiscountLineV2Entity
ServiceInventoryStatusId→WHSInventStatus.InventStatusId(key of WHSInventStatus)Many InventDim records → zero or one WHSInventStatus record
WHSInventStatus details: see WHSInventoryStatusEntity, WHSInventStatusCDREntity
Need help with SMAServiceOrderLineEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.