Data entity

SMAServiceOrderHeaderEntity

Read-only view of service order headers, keyed by service order number. It covers the customer, project, linked service agreement, priority, service level agreement, stage and progress. It also has sign-off details and the service address. It links to workers and to postal address data.

Entity name
SMAServiceOrderHeaderEntity
Public entity name
ServiceOrderHeader
OData collection
ServiceOrderHeaders
Category
Document
Module
Service management
Read-only
Yes
Data management enabled
Yes
Configuration key
SMAManagement
Keys
ServiceOrderNumber
Staging table
SMAServiceOrderHeaderStaging

Use it in Power BI and Power Platform

OData URL
https://<environment>/data/ServiceOrderHeaders
Dataverse virtual table
mserp_smaserviceorderheaderentity. 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

  • SMAServiceOrderTable · root
  • HcmWorker_PreferredTechnician (table HcmWorker) · OuterJoin to SMAServiceOrderTable · read-only
  • HcmWorker_Responsible (table HcmWorker) · OuterJoin to SMAServiceOrderTable · read-only
  • LogisticsPostalAddressBaseEntity · OuterJoin to SMAServiceOrderTable · read-only

Fields (48)

Field and descriptionType / EDT / enumMandatoryOData / DataverseReferencesLineage root
ServiceOrderNumberUnique ID of the service order. It is the key of the table.String
SMAServiceOrderId
NoYesSMAServiceOrderTable.ServiceOrderId
ServiceOrderDescriptionShort text describing the service order.String (60)
Description
NoYesSMAServiceOrderTable.Description
ServiceCustomerAccountNumberCustomer account the service order is for.String (20)
CustAccount
NoYesCustTable.AccountNumSMAServiceOrderTable.CustAccount
ProjectIdProject linked to the service order.String (20)
ProjId
NoYesProjTable.ProjIdSMAServiceOrderTable.ProjId
ServiceAgreementIdService agreement that the order relates to.String
SMAAgreementId
NoYesSMAAgreementTable.AgreementIdSMAServiceOrderTable.AgreementId
ContactPersonIdContact person for the order.String (20)
ContactPersonId
NoYesContactPerson.ContactPersonIdSMAServiceOrderTable.ContactPersonId
IsServiceOrderSignedOffYes/No flag showing whether the order has been signed off.Enum
NoYes

Platform enum: values not in the metadata extract.

NoYesSMAServiceOrderTable.SignOff
ServiceOrderSignOffDateTimeDate and time of the sign-off.UtcDateTime
SMASignOffDateTime
NoYesSMAServiceOrderTable.SignOffDateTime
ServiceOrderPriorityPriority of the order: low, normal or high.Enum
smmActivityPriority
  • Low 1
  • Normal 0
  • High 2
NoYesSMAServiceOrderTable.Priority
ServiceLevelAgreementIdService level agreement that applies to the order.String
SMAServiceLevelAgreementId
NoYesSMAServiceLevelAgreementTable.ServiceLevelAgreementIdSMAServiceOrderTable.ServiceLevelAgreement
TimeRecordingStatusStatus of the service level agreement on this order: none, started, stopped or canceled.Enum
SMAServiceOrderSLAStatus
SMALogStatus
  • None 0
  • Open 1
  • Closed 2
  • Cancel 3
NoYesSMAServiceOrderTable.ServiceLevelAgreementStatus
ServiceLevelAgreementCompliancePercentageNumber showing compliance with the service level agreement. The unit is not stated in the metadata.low confidenceReal
SMAServiceLevelAgreementCompliance
NoYesSMAServiceOrderTable.Compliance
PreferredServiceDateTimeDate and time the customer prefers for the service.UtcDateTime
SMAPreferredServiceDateTime
NoYesSMAServiceOrderTable.ServiceDateTime
ServiceOrderOriginShows where the order came from: system, user or web.Enum
SMAServiceOrderOrigin
  • System 0
  • User 1
  • Web 2
NoYesSMAServiceOrderTable.Origin
ServiceOrderStageIdService stage the order is currently in.String
SMAStageId
YesYesSMAStageTable.StageIdSMAServiceOrderTable.StageId
ServiceOrderProgressProgress of the order: in process, posted or canceled.Enum
SMAServiceOrderProgress
  • InProcess 0
  • Transferred 1
  • Canceled 2
NoYesSMAServiceOrderTable.Progress
HasCalendarConflictYes/No flag showing whether the order has a calendar conflict.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYesSMAServiceOrderTable.CalendarConflict
PreferredTechnicianPersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
ServiceResponsiblePersonnelNumberNumber that identifies the worker within the organisation.String (25)
HcmPersonnelNumberId
NoYesHcmWorker.PersonnelNumber
DefaultLineActivityTypeIdDefault activity type for the order's lines, taken from the activity type groups.String (20)
smmActivityTypeId
NoYessmmActivityTypeGroup.TypeIdSMAServiceOrderTable.ActivityTypeId
ProjectActivityNumberActivity linked to the service order.String (50)
smmActivityId
NoYessmmActivities.ActivityNumberSMAServiceOrderTable.ActivityNumber
ServiceAddressNameName used for the service address.String (100)
LogisticsServiceName
NoYesSMAServiceOrderTable.ServiceAddressName
ServicePostalAddressPostal address where the service takes place, pointing to a logistics address record.Int64
LogisticsPostalAddressRecId
NoNo (private)LogisticsPostalAddress.RecIdSMAServiceOrderTable.ServicePostalAddress
FormattedServiceAddressThe full address as one formatted text.String (250)
LogisticsAddressing
NoYesLogisticsPostalAddress.Address
ServiceAddressZipCodeZIP or postal code, as text.String
LogisticsAddressZipCodeId
NoYesLogisticsPostalAddress.ZipCode
ServiceAddressLocationIdUnique ID of the location. It is the key of the table.String (40)
LogisticsLocationId
NoYesLogisticsLocation.LocationId
ServiceAddressBuildingComplimentExtra building detail, such as an entrance or floor.String (60)
LogisticsAddressBuildingCompliment
NoYesLogisticsPostalAddress.BuildingCompliment
ServiceAddressCityName of the city, as text.String (60)
LogisticsAddressCityName
NoYesLogisticsPostalAddress.City
ServiceAddressCityInKanaCity name written in Kana; used for Japan.String (60)
AssetCityKana_JP
NoYesLogisticsPostalAddress.CityKana_JP
ServiceAddressCountryRegionIdThe country or region of the address.String
LogisticsAddressCountryRegionId
NoYesLogisticsAddressCountryRegion.CountryRegionIdLogisticsPostalAddress.CountryRegionId
ServiceAddressCountryRegionISOCodeISO code of the country or region of the address.String (2)
LogisticsAddressCountryRegionISOCode
NoYesNone
ServiceAddressCountyIdCounty code of the address. It depends on the country and state.String (30)
LogisticsAddressCountyId
NoYesLogisticsAddressCounty.CountyIdLogisticsPostalAddress.County
ServiceAddressDescriptionName or description of the location.String (60)
LogisticsDescription
NoYesLogisticsLocation.Description
ServiceAddressDistrictNameName of the district, as text.String (60)
LogisticsAddressDistrictName
NoYesLogisticsPostalAddress.DistrictName
ServiceAddressDunsNumberThe DUNS number, up to nine characters long. It is the key of the table.String (9)
LogisticsDunsNumber
NoYesDirDunsNumber.DunsNumber
ServiceAddressLatitudeGeographic latitude of the address.Real
LogisticsAddressLatitude
NoYesLogisticsPostalAddress.Latitude
IsServiceAddressPrivateShows whether the address is private (Yes or No).Enum
LogisticsIsPrivate
NoYes

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.IsPrivate
ServiceAddressLongitudeGeographic longitude of the address.Real
LogisticsAddressLongitude
NoYesLogisticsPostalAddress.Longitude
ServiceAddressPostBoxPost office box number.String (20)
LogisticsAddressPostBox
NoYesLogisticsPostalAddress.PostBox
ServiceAddressStateIdState or province code of the address.String
LogisticsAddressStateId
NoYesLogisticsAddressState.StateIdLogisticsPostalAddress.State
ServiceAddressStreetStreet name of the address.String (250)
LogisticsAddressStreet
NoYesLogisticsPostalAddress.Street
ServiceAddressStreetInKanaStreet name written in Kana; used for Japan.String (250)
AssetStreetKana_JP
NoYesLogisticsPostalAddress.StreetKana_JP
ServiceAddressStreetNumberStreet or house number.String (20)
LogisticsAddressStreetNumber
NoYesLogisticsPostalAddress.StreetNumber
ServiceAddressValidFromDate and time from which the address is effective.UtcDateTime
EffectiveDateTime
NoNo (private)LogisticsPostalAddress.ValidFrom
ServiceAddressValidToDate and time when the address expires.UtcDateTime
ExpirationDateTime
NoNo (private)LogisticsPostalAddress.ValidTo
ServicePostalAddressRecIdA unique number that the system gives to every record. Other tables often use it to point to this record.Int64
RecId
NoNo (private)LogisticsPostalAddress.RecId
ServiceAddressTimeZoneTime zone of the address.Enum
Timezone

Platform enum: values not in the metadata extract.

NoYesLogisticsPostalAddress.TimeZone
IsServiceAddressOrderSpecificYes or No value showing whether the service address is a one-time address for this order.Enum
NoYesId
NoYes

Platform enum: values not in the metadata extract.

NoYescomputed

Foreign keys (12)

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.

  • ServiceCustomerAccountNumber → CustTable.AccountNum (key of CustTable)

    Many SMAServiceOrderTable records → zero or one CustTable record

    CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity

  • ProjectId → ProjTable.ProjId (key of ProjTable)

    Many SMAServiceOrderTable records → zero or one ProjTable record

    ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity

  • ServiceAgreementId → SMAAgreementTable.AgreementId (key of SMAAgreementTable)

    Many SMAServiceOrderTable records → zero or one SMAAgreementTable record

    SMAAgreementTable details: see SMAServiceAgreementHeaderEntity

  • ContactPersonId → ContactPerson.ContactPersonId (key of ContactPerson)

    Many SMAServiceOrderTable records → zero or one ContactPerson record

    ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity

  • ServiceLevelAgreementId → SMAServiceLevelAgreementTable.ServiceLevelAgreementId (key of SMAServiceLevelAgreementTable)

    Many SMAServiceOrderTable records → zero or one SMAServiceLevelAgreementTable record

    SMAServiceLevelAgreementTable details: see SMAServiceLevelAgreementEntity

  • ServiceOrderStageId → SMAStageTable.StageId (key of SMAStageTable)

    Many SMAServiceOrderTable records → exactly one SMAStageTable record

    Not exposed by a public entity.

  • DefaultLineActivityTypeId → smmActivityTypeGroup.TypeId (key of smmActivityTypeGroup)

    Many SMAServiceOrderTable records → zero or one smmActivityTypeGroup record

    Not exposed by a public entity.

  • ProjectActivityNumber → smmActivities.ActivityNumber (key of smmActivities)

    Many SMAServiceOrderTable records → zero or one smmActivities record

    smmActivities details: see DualWriteSmmActivitiesEntity, DualWriteCustomerActivitiesEntity, DualWriteCustomerActivitiesV2Entity

  • ServicePostalAddress → LogisticsPostalAddress.RecId (key of LogisticsPostalAddress)

    Many SMAServiceOrderTable records → zero or one LogisticsPostalAddress record

    LogisticsPostalAddress details: see CustCustomerV3Entity, InventTransferOrderHeaderEntity, TMSFreightBillDetailEntity

  • ServiceAddressCountryRegionId → LogisticsAddressCountryRegion.CountryRegionId (key of LogisticsAddressCountryRegion)

    Many LogisticsPostalAddress records → exactly one LogisticsAddressCountryRegion record

    LogisticsAddressCountryRegion details: see ElectronicTaxICPDeclarationEntity, LogisticsAddressCountryRegionEntity, PaymentCalendarEntity

  • ServiceAddressCountyId → LogisticsAddressCounty.CountyId (key of LogisticsAddressCounty)

    Join on all of: ServiceAddressCountyId = LogisticsAddressCounty.CountyId, ServiceAddressCountryRegionId = LogisticsAddressCounty.CountryRegionId, ServiceAddressStateId = LogisticsAddressCounty.StateId

    Many LogisticsPostalAddress records → zero or one LogisticsAddressCounty record

    LogisticsAddressCounty details: see LogisticsAddressCountyEntity, VRMLogisticsAddressCountyEntity

  • ServiceAddressStateId → LogisticsAddressState.StateId (key of LogisticsAddressState)

    Join on all of: ServiceAddressStateId = LogisticsAddressState.StateId, ServiceAddressCountryRegionId = LogisticsAddressState.CountryRegionId

    Many LogisticsPostalAddress records → zero or one LogisticsAddressState record

    LogisticsAddressState details: see LogisticsAddressStateEntity, PayrollEmployerTaxRegionEntity, StateHolidayEntity

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

Email sales@drdynamics.co.uk