Table
SMAServiceObjectRelation
Service objects
Links a service object to a service agreement or a service order. The relation type and relation key identify which agreement or order is meant. It can also carry a sales order, a template BOM and an inventory dimension. It has no defined key.
- Table name
SMAServiceObjectRelation- Module
Service management- Table group
Main- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
RecId- Replacement key
None- Key fields
None- Model
Foundation
Fields (14)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
InventDimIdPoints to the inventory dimension record that goes with this service object relation. | String (20)InventDimId | No | InventDim.inventDimId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
RelKeyIdThe ID of the related agreement or service order. It is read together with the relation type. | StringSMATableKeyId | Yes | SMAAgreementTable.AgreementIdSMAServiceOrderTable.ServiceOrderId | None |
RelTableIdSays which kind of record the relation key refers to, either a service agreement or a service order. | IntegerRefTableId | Yes | SMAAgreementTable.TableIdSMAServiceOrderTable.TableId | None |
SalesIdThe sales order linked to this service object relation. | String (20)SalesId | No | SalesTable.SalesId | None |
ServiceObjectIdThe service object that is linked by this relation. | String (20)SMAServiceObject | Yes | SMAServiceObjectTable.ServiceObjectId | None |
ServiceObjectRefA reference text for the service object. The metadata does not say more about its use.low confidence | String (30)SMAServiceObjectRef | No | None | |
ServiceObjectRelationIdThe ID of this service object relation. It also relates to service agreement lines. | String (20)SMAServiceObjectRelationId | Yes | None | |
SysRowVersionA system row version number that is used for change tracking. System field. | Int64SysRowVersion | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TemplateBOMIdThe template bill of materials linked to this relation. | String (20)SMATemplateBOMId | No | SMATemplateBOMTable.TemplateBOMId | None |
Indexes (2)
ServiceObjectRelationIdxServiceObjectId,RelKeyId,RelTableIdNot unique.
ServiceObjectRelationIdIdxNot unique.
Relations (8)
Each relation joins SMAServiceObjectRelation to another table on the fields shown.
InventDim→InventDimJoin on
InventDimId = InventDim.inventDimIdMany SMAServiceObjectRelation records → zero or one InventDim record
SalesTable→SalesTableJoin on
SalesId = SalesTable.SalesIdMany SMAServiceObjectRelation records → zero or one SalesTable record
SMAAgreementLines→SMAAgreementLineJoin on
RelTableId = SMAAgreementLine.TableId,RelKeyId = SMAAgreementLine.AgreementId,ServiceObjectRelationId = SMAAgreementLine.ServiceObjectRelationIdMany SMAServiceObjectRelation records → zero or one SMAAgreementLine record
SMAAgreementTable→SMAAgreementTableJoin on
RelKeyId = SMAAgreementTable.AgreementId,RelTableId = SMAAgreementTable.TableIdMany SMAServiceObjectRelation records → zero or one SMAAgreementTable record
SMAObjectTable→SMAServiceObjectTableJoin on
ServiceObjectId = SMAServiceObjectTable.ServiceObjectIdOne or more SMAServiceObjectRelation records → exactly one SMAServiceObjectTable record
SMAServiceOrderLine→SMAServiceOrderLineJoin on
RelTableId = SMAServiceOrderLine.TableId,RelKeyId = SMAServiceOrderLine.ServiceOrderId,ServiceObjectRelationId = SMAServiceOrderLine.ServiceObjectRelationIdMany SMAServiceObjectRelation records → zero or one SMAServiceOrderLine record
SMAServiceOrderTable→SMAServiceOrderTableJoin on
RelKeyId = SMAServiceOrderTable.ServiceOrderId,RelTableId = SMAServiceOrderTable.TableIdMany SMAServiceObjectRelation records → zero or one SMAServiceOrderTable record
SMATemplateBOMTable→SMATemplateBOMTableJoin on
TemplateBOMId = SMATemplateBOMTable.TemplateBOMIdMany SMAServiceObjectRelation records → zero or one SMATemplateBOMTable record
Get this data out
No public entity reads from SMAServiceObjectRelation. Its data is only reachable through the application, a custom entity or a database export.
Need help with SMAServiceObjectRelation in a report, an integration or a migration? Talk to Dr Dynamics.