Table
SMAServiceOrderTable
Service orders
Holds service orders, one record per service order ID. Each order can link to a customer, project, service agreement, service level agreement, service stage, address and responsible workers. It also stores progress, priority, origin and sign-off details.
- Table name
SMAServiceOrderTable- Module
Service management- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
ServiceOrderIdx- Replacement key
ServiceOrderIdx- Key fields
ServiceOrderId- Model
Foundation
Fields (35)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
ServiceOrderIdUnique ID of the service order. It is the key of the table. | StringSMAServiceOrderId | Yes | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ActivityNumberActivity linked to the service order. | String (50)smmActivityId | No | smmActivities.ActivityNumber | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
ActivityTypeIdDefault activity type for the order's lines, taken from the activity type groups. | String (20)smmActivityTypeId | No | smmActivityTypeGroup.TypeId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
AddressRefRecIdSystem record ID of the record that the address reference points to. It is used together with the reference table ID. | Int64AddressRefRecId | No | SMAServiceOrderTableBiEntity | |
AddressRefTableIdID of the table that the address reference points to. | IntegerAddressRefTableId | No | SMAServiceOrderTableBiEntity | |
AgreementIdService agreement that the order relates to. | StringSMAAgreementId | No | SMAAgreementTable.AgreementId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
CalendarConflictYes/No flag showing whether the order has a calendar conflict. | EnumNoYesIdNoYes (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
CertifiedPayrollYes/No flag for certified payroll on the order. | EnumNoYesIdNoYes (enum) | No | SMAServiceOrderTableBiEntity | |
ComplianceNumber showing compliance with the service level agreement. The unit is not stated in the metadata.low confidence | RealSMAServiceLevelAgreementCompliance | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ContactPersonIdContact person for the order. | String (20)ContactPersonId | No | ContactPerson.ContactPersonId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | SMAServiceOrderTableBiEntity | |
CustAccountCustomer account the service order is for. | String (20)CustAccount | No | CustTable.AccountNum | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntitySMAServiceOrderLineEntity |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | SMAServiceOrderTableBiEntity | |
DescriptionShort text describing the service order. | String (60)Description | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
IncomingWebOrderYes/No flag showing whether the order came in as an incoming web order. | EnumNoYes (enum) | No | SMAServiceOrderTableBiEntity | |
OriginShows where the order came from: system, user or web. | EnumSMAServiceOrderOrigin (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
PriorityPriority of the order: low, normal or high. | EnumsmmActivityPriority (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ProgressProgress of the order: in process, posted or canceled. | EnumSMAServiceOrderProgress (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ProjIdProject linked to the service order. | String (20)ProjId | No | ProjTable.ProjId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | SMAServiceOrderTableBiEntity | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | SMAServiceOrderTableBiEntity | |
ServiceAddressNameName used for the service address. | String (100)LogisticsServiceName | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ServiceDateTimeDate and time the customer prefers for the service. | UtcDateTimeSMAPreferredServiceDateTime | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ServiceLevelAgreementService level agreement that applies to the order. | StringSMAServiceLevelAgreementId | No | SMAServiceLevelAgreementTable.ServiceLevelAgreementId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
ServiceLevelAgreementStatusStatus of the service level agreement on this order: none, started, stopped or canceled. | EnumSMAServiceOrderSLAStatusSMALogStatus (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
ServicePostalAddressPostal address where the service takes place, pointing to a logistics address record. | Int64LogisticsPostalAddressRecId | No | LogisticsPostalAddress.RecId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
SignOffYes/No flag showing whether the order has been signed off. | EnumNoYes (enum) | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
SignOffDateTimeDate and time of the sign-off. | UtcDateTimeSMASignOffDateTime | No | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity | |
StageIdService stage the order is currently in. | StringSMAStageId | Yes | SMAStageTable.StageId | SMAServiceOrderHeaderEntitySMAServiceOrderTableBiEntity |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
SysRowVersionNumberSystem number used to track the version of the row.low confidence | Int64SysRowVersionNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
WorkerPreferredTechnicianWorker who is the preferred technician for the order. | Int64SMAWorkerPreferredTechnician | No | HcmWorker.RecId | SMAServiceOrderTableBiEntity |
WorkerResponsibleWorker who is responsible for the service order. | Int64SMAWorkerServiceResponsible | No | HcmWorker.RecId | SMAServiceOrderTableBiEntity |
Indexes (3)
ServiceOrderIdxPrimary indexReplacement keyUnique, alternate key.
ProgressIdxNot unique.
ServicePostalAddressIdxNot unique.
Relations (14)
Each relation joins SMAServiceOrderTable to another table on the fields shown.
Common→CommonJoin on
AddressRefTableId = Common.TableId,AddressRefRecId = Common.RecIdCardinality not set in the metadata.
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany SMAServiceOrderTable records → zero or one ContactPerson record
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumMany SMAServiceOrderTable records → zero or one CustTable record
HcmWorker_PreferredTechnician→HcmWorkerJoin on
WorkerPreferredTechnician = HcmWorker.RecIdMany SMAServiceOrderTable records → zero or one HcmWorker record
HcmWorker_Responsible→HcmWorkerJoin on
WorkerResponsible = HcmWorker.RecIdMany SMAServiceOrderTable records → zero or one HcmWorker record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SMAServiceOrderTable records → zero or one ProjTable record
ServicePostalAddress→LogisticsPostalAddressJoin on
ServicePostalAddress = LogisticsPostalAddress.RecIdMany SMAServiceOrderTable records → zero or one LogisticsPostalAddress record
SMAAgreementTable→SMAAgreementTableJoin on
AgreementId = SMAAgreementTable.AgreementIdMany SMAServiceOrderTable records → zero or one SMAAgreementTable record
SMAServiceLevelAgreementTable→SMAServiceLevelAgreementTableJoin on
ServiceLevelAgreement = SMAServiceLevelAgreementTable.ServiceLevelAgreementIdMany SMAServiceOrderTable records → zero or one SMAServiceLevelAgreementTable record
SMAServiceObjectRelation→SMAServiceObjectRelationJoin on
ServiceOrderId = SMAServiceObjectRelation.RelKeyId,TableId = SMAServiceObjectRelation.RelTableIdMany SMAServiceOrderTable records → zero or one SMAServiceObjectRelation record
SMAServiceTaskRelation→SMAServiceTaskRelationJoin on
ServiceOrderId = SMAServiceTaskRelation.RelKeyId,TableId = SMAServiceTaskRelation.RelTableIdMany SMAServiceOrderTable records → zero or one SMAServiceTaskRelation record
SMAStageTable→SMAStageTableJoin on
StageId = SMAStageTable.StageIdMany SMAServiceOrderTable records → exactly one SMAStageTable record
smmActivities→smmActivitiesJoin on
ActivityNumber = smmActivities.ActivityNumberMany SMAServiceOrderTable records → zero or one smmActivities record
smmActivityTypeGroup→smmActivityTypeGroupJoin on
ActivityTypeId = smmActivityTypeGroup.TypeIdMany SMAServiceOrderTable records → zero or one smmActivityTypeGroup record
Get this data out
Tables are not exposed directly. These public entities read from SMAServiceOrderTable; use one of them in Power BI, Power Platform or a data management project.
SMAServiceOrderHeaderEntity· 21 fields from this tableSMAServiceOrderTableBiEntity· 31 fields from this tableSMAServiceOrderLineEntity· 1 field from this table
Need help with SMAServiceOrderTable in a report, an integration or a migration? Talk to Dr Dynamics.