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 · root
  • HcmWorker · OuterJoin to SMAServiceOrderLine · read-only
  • DefaultDimensionDAVS (table DimensionSetEntity) · OuterJoin to SMAServiceOrderLine · read-only
  • LedgerDimensionDAVC (table DimensionCombinationEntity) · OuterJoin to SMAServiceOrderLine · read-only
  • InventDim · OuterJoin to SMAServiceOrderLine · read-only
  • SMAServiceOrderTable · InnerJoin to SMAServiceOrderLine · read-only

Fields (59)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ProjectSalesCurrencyCodeCurrency used for the sales price.String (3)
ProjSalesCurrencyCode
NoYesCurrency.CurrencyCodeSMAServiceOrderLine.ProjCurrencyCode
DispatchActivityNumberDispatch activity linked to the line.String (50)
smmActivityId
NoYessmmActivities.ActivityNumberSMAServiceOrderLine.ActivityId
ProjectActivityNumberActivity number of the linked project activity.String (50)
ProjActivityNumber
NoYessmmActivities.ActivityNumberSMAServiceOrderLine.ActivityNumber
ServiceAgreementIdService agreement the line belongs to.String
SMAAgreementId
NoYesSMAAgreementTable.AgreementIdSMAServiceOrderLine.AgreementId
ServiceAgreementLineNumberLine number on the service agreement.Integer
SMAAgreementLineNum
NoYesSMAServiceOrderLine.AgreementLineNum
ServiceCustomerAccountNumberCustomer account the service order is for.String (20)
CustAccount
NoYesCustTable.AccountNumSMAServiceOrderTable.CustAccount
CurrencyCodeCurrency used for the cost price.String (3)
CurrencyCode
NoYesCurrency.CurrencyCodeSMAServiceOrderLine.CurrencyIdCost
ScheduledExecutionDateDate the line was calculated.Date
SMADateCalculated
NoYesSMAServiceOrderLine.DateCalculated
ActualExecutionDatePosting date of the line.Date
SMADateExecution
NoYesSMAServiceOrderLine.DateExecution
ServicingWindowStartDateStart of the date range for the line.Date
SMADateRangeFrom
YesYesSMAServiceOrderLine.DateRangeFrom
ServicingWindowEndDateEnd of the date range for the line.Date
SMADateRangeTo
YesYesSMAServiceOrderLine.DateRangeTo
DefaultLedgerDimensionDefault financial dimension set for the line.Int64
InventSiteSMAItemLinkedDimensionValueSet
NoNo (private)DimensionAttributeValueSet.RecIdSMAServiceOrderLine.DefaultDimension
DefaultLedgerDimensionDisplayValueDefault dimensions shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
LineDescriptionShort description of the line.String (60)
Description
NoYesSMAServiceOrderLine.Description
LineNoteLonger text describing the service.String (1000)
SMADescription
NoYesSMAServiceOrderLine.DescriptionService
InvoiceIdInvoice linked to the line.String (50)
InvoiceId
NoYesSMAServiceOrderLine.InvoiceId
ItemNumberItem on the line.String (20)
ItemId
NoYesInventTable.ItemIdSMAServiceOrderLine.ItemId
ExpenseOffsetLedgerAccountOffset ledger account for the line.Int64
LedgerDimensionAccount
NoNo (private)DimensionAttributeValueCombination.RecIdSMAServiceOrderLine.LedgerDimension
ExpenseOffsetLedgerAccountDisplayValueFull combination of dimension values, shown as one text string.String (500)
DimensionDisplayValue
NoYesNone
ExpenseOffsetAccountTypeType of the offset account, such as ledger, customer, vendor or project.Enum
LedgerJournalACType
  • Ledger 0
  • Cust 1
  • Vend 2
  • Project 3
  • FixedAssets 5
  • Bank 6
  • FixedAssets_RU 12
  • Employee_RU 13
  • RDeferrals 14
  • RCash 15
NoYesSMAServiceOrderLine.OffsetAccountTypeExpense
LineOriginHow the line was created: by the system, a user or the web.Enum
SMAServiceOrderOrigin
  • System 0
  • User 1
  • Web 2
NoYesSMAServiceOrderLine.Origin
ProjectCategoryIdProject category of the line.String (30)
ProjCategoryId
YesYesProjCategory.CategoryIdSMAServiceOrderLine.ProjCategoryId
ProjectCostPriceCost price of the line.Real
ProjCostPriceCost
NoYesSMAServiceOrderLine.ProjCostPrice
ProjectIdProject linked to the line.String (20)
ProjId
NoYesProjTable.ProjIdSMAServiceOrderLine.ProjId
ProjectLinePropertyIdProject line property of the line.String
ProjLinePropertyId
YesYesProjLineProperty.LinePropertyIdSMAServiceOrderLine.ProjLinePropertyId
ProjectSalesPriceSales price of the line.Real
ProjSalesPriceCost
NoYesSMAServiceOrderLine.ProjSalesPrice
ProjectTaxGroupCodeSales tax group of the line.String
ProjTaxGroup
NoYesTaxGroupHeading.TaxGroupSMAServiceOrderLine.ProjTaxGroup
ProjectTaxItemGroupCodeItem sales tax group of the line.String
ProjTaxItemGroup
NoYesTaxItemGroupHeading.TaxItemGroupSMAServiceOrderLine.ProjTaxItemGroup
ProjectTransactionIdID of the related project transaction (cost, hour or item).String (20)
ProjTransIdBase
NoYesProjCostTrans.TransIdProjEmplTrans.TransIdProjItemTrans.ProjTransIdProjRevenueTrans.TransIdSMAServiceOrderLine.ProjTransId
ProjectDescriptionDescription text for the project transaction.String (60)
TransTxt
NoYesSMAServiceOrderLine.ProjTransTxt
ServiceObjectIdService object the line relates to.String (20)
SMAServiceObjectId
NoYesSMAServiceObjectTable.ServiceObjectIdSMAServiceOrderLine.ServiceObjectId
ServiceObjectRelationIdService object relation linked to the line.String (20)
SMAServiceObjectRelationId
NoYesSMAServiceOrderLine.ServiceObjectRelationId
ServiceOrderNumberService order the line belongs to.String
SMAServiceOrderId
NoYesSMAServiceOrderTable.ServiceOrderIdSMAServiceOrderLine.ServiceOrderId
LineNumberLine number within the service order.Real
LineNum
NoYesSMAServiceOrderLine.ServiceOrderLineNum
LineStatusStatus of the line: Created, Posted or Canceled.Enum
SMAServiceOrderStatus
  • Created 0
  • Posted 1
  • Canceled 2
NoYesSMAServiceOrderLine.ServiceOrderStatus
ServiceTaskIdService task linked to the line.String
SMAServiceTaskId
NoYesSMAServiceTask.ServiceTaskIdSMAServiceOrderLine.ServiceTaskId
ServiceEndBeforeTimeLatest time by which the service should end.Time
SMAEndBeforeTime
NoYesSMAServiceOrderLine.ServiceTimeEndBefore
ServiceStartAfterTimeEarliest time at which the service should start.Time
SMAStartAfter
NoYesSMAServiceOrderLine.ServiceTimeStartAfter
IsLineSignedOffShows whether the line has been signed off.Enum
SMASignOff
NoYes

Platform enum: values not in the metadata extract.

NoYesSMAServiceOrderLine.SignOff
SalesTaxGroupCodeSales tax group for the expense.String
TaxGroupJournal
NoYesSMAServiceOrderLine.TaxGroupExpense
SalesTaxItemGroupCodeItem sales tax group for the expense.String
TaxGroupJournal
NoYesTaxItemGroupHeading.TaxItemGroupSMAServiceOrderLine.TaxItemGroupExpense
ActualServiceEndTimeTime the service work finished.Time
SMAServiceFinishedTime
NoYesSMAServiceOrderLine.TimeSheetEndTime
ActualServiceStartTimeTime the service work started.Time
SMAServiceStartedTime
NoYesSMAServiceOrderLine.TimeSheetStartTime
ServiceTransactionTypeKind of line: Hour, Expense, Item or Fee.Enum
SMATransactionType
  • Hour 1
  • Expense 2
  • Item 3
  • Fee 4
NoYesSMAServiceOrderLine.TransactionType
ItemUnitSymbolUnit of measure for the quantity.String
UnitOfMeasureSymbol
NoYesUnitOfMeasure.SymbolSMAServiceOrderLine.Unit
AssignedTechnicianRecIdWorker who carried out the line.Int64
SMAWorker
NoNo (private)HcmWorker.RecIdSMAServiceOrderLine.Worker
AssignedTechnicianPersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
HoursNumber of hours on the service order line.Real
SMAQuantity
NoYescomputed
ItemQuantityQuantity of items on the service order line.Real
SMAQuantity
NoYescomputed
ExpenseQuantityQuantity of expenses on the service order line.Real
SMAQuantity
NoYescomputed
ProductConfigurationIdConfiguration of the product.String (50)
EcoResItemConfigurationName
NoYesEcoResConfiguration.NameInventDim.configId
ProductColorIdColour of the product.String
EcoResItemColorName
NoYesEcoResColor.NameInventDim.InventColorId
ProductSizeIdSize of the product.String
EcoResItemSizeName
NoYesEcoResSize.NameInventDim.InventSizeId
ProductStyleIdStyle of the product.String
EcoResItemStyleName
NoYesEcoResStyle.NameInventDim.InventStyleId
ProductVersionIdVersion of the product.String
EcoResItemVersionName
NoYesEcoResVersion.NameInventDim.InventVersionId
ItemBatchNumberBatch number of the inventory.String (20)
InventBatchId
NoYesInventDim.inventBatchId
ServiceInventorySiteIdSite of the inventory.String
InventSiteId
NoYesInventSite.SiteIdInventDim.InventSiteId
ServiceInventoryWarehouseIdWarehouse of the inventory.String
InventLocationId
NoYesInventLocation.InventLocationIdInventDim.InventLocationId
ServiceInventoryStatusIdInventory status of the stock.String
WHSInventStatusId
NoYesWHSInventStatus.InventStatusIdInventDim.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.

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

Email sales@drdynamics.co.uk