Table
SMAAgreementTable
Service agreements
Holds service agreement headers, identified by the agreement ID. A header sets the dates, agreement group, project, contact, service level agreement, template group and responsible workers. It also stores how service orders are combined and whether the agreement is suspended.
- Table name
SMAAgreementTable- Module
Service management- Table group
WorksheetHeader- Table type
Regular- Data per company
Yes- Configuration key
SMAManagement- Primary index
AgreementIdIdx- Replacement key
AgreementIdIdx- Key fields
AgreementId- Model
Foundation
Fields (23)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
AgreementIdUnique ID of the service agreement. | StringSMAAgreementId | Yes | SMAServiceAgreementHeaderEntity | |
ActivityTypeIdDefault activity type for the agreement lines. | String (20)smmActivityTypeId | No | smmActivityTypeGroup.TypeId | SMAServiceAgreementHeaderEntity |
AgreementDescriptionShort description of the agreement. | String (60)Description | No | SMAServiceAgreementHeaderEntity | |
AgreementGroupIdService agreement group that the agreement belongs to. | StringSMAAgreementGroupId | Yes | SMAAgreementGroup.AgreementGroup | SMAServiceAgreementHeaderEntity |
ContactPersonIdContact person for the agreement. | String (20)SMAContactPersonId | No | ContactPerson.ContactPersonId | SMAServiceAgreementHeaderEntity |
ContinuousService_INYes/no flag for continuous service, used for India. | EnumNoYesIdNoYes (enum) | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
EndDateDate on which the agreement ends. | DateEndDate | No | SMAServiceAgreementHeaderEntity | |
GroupByHow service orders are combined: by agreement, task, employee or service object. | EnumSMAGroupServiceOrder (enum) | No | SMAServiceAgreementHeaderEntity | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
ProjIdProject linked to the agreement. | String (20)ProjId | Yes | ProjTable.ProjId | SMAServiceAgreementHeaderEntity |
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 | |
ServiceEventGroup_INService event group, used for India. | StringServiceEventGroup_IN | No | None | |
ServiceLevelAgreementIdService level agreement linked to the agreement. | StringSMAServiceLevelAgreementId | No | SMAServiceLevelAgreementTable.ServiceLevelAgreementId | SMAServiceAgreementHeaderEntity |
StartDateDate on which the agreement starts. | DateStartDate | Yes | SMAServiceAgreementHeaderEntity | |
SuspendedYes/no flag showing whether the agreement is suspended. | EnumNoYes (enum) | No | SMAServiceAgreementHeaderEntity | |
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 | |
TemplateGroupIdService template group linked to the agreement. | StringSMATemplateGroupId | No | SMATemplateGroup.TemplateGroupId | SMAServiceAgreementHeaderEntity |
WorkerPreferredTechnicianWorker who is the preferred technician. | Int64SMAWorkerPreferredTechnician | No | HcmWorker.RecId | None |
WorkerServiceResponsibleWorker who is responsible for the service. | Int64SMAWorkerServiceResponsible | No | HcmWorker.RecId | None |
Indexes (4)
AgreementIdIdxPrimary indexReplacement keyUnique, alternate key.
ProjIdAgreementIdIdxNot unique.
TemplateGroupIdIdxNot unique.
SuspendedIdxNot unique.
Relations (10)
Each relation joins SMAAgreementTable to another table on the fields shown.
ContactPerson→ContactPersonJoin on
ContactPersonId = ContactPerson.ContactPersonIdMany SMAAgreementTable records → zero or one ContactPerson record
HcmWorker_PreferredTechnician→HcmWorkerJoin on
WorkerPreferredTechnician = HcmWorker.RecIdMany SMAAgreementTable records → zero or one HcmWorker record
HcmWorker_ServiceResponsible→HcmWorkerJoin on
WorkerServiceResponsible = HcmWorker.RecIdMany SMAAgreementTable records → zero or one HcmWorker record
ProjTable→ProjTableJoin on
ProjId = ProjTable.ProjIdMany SMAAgreementTable records → exactly one ProjTable record
SMAAgreementGroup→SMAAgreementGroupJoin on
AgreementGroupId = SMAAgreementGroup.AgreementGroupMany SMAAgreementTable records → exactly one SMAAgreementGroup record
SMAServiceLevelAgreementTable→SMAServiceLevelAgreementTableJoin on
ServiceLevelAgreementId = SMAServiceLevelAgreementTable.ServiceLevelAgreementIdMany SMAAgreementTable records → zero or one SMAServiceLevelAgreementTable record
SMAServiceObjectRelation→SMAServiceObjectRelationJoin on
AgreementId = SMAServiceObjectRelation.RelKeyId,TableId = SMAServiceObjectRelation.RelTableIdMany SMAAgreementTable records → zero or one SMAServiceObjectRelation record
SMAServiceTaskRelation→SMAServiceTaskRelationJoin on
AgreementId = SMAServiceTaskRelation.RelKeyId,TableId = SMAServiceTaskRelation.RelTableIdMany SMAAgreementTable records → zero or one SMAServiceTaskRelation record
SMATemplateGroup→SMATemplateGroupJoin on
TemplateGroupId = SMATemplateGroup.TemplateGroupIdMany SMAAgreementTable records → zero or one SMATemplateGroup record
smmActivityTypeGroup→smmActivityTypeGroupJoin on
ActivityTypeId = smmActivityTypeGroup.TypeIdMany SMAAgreementTable records → zero or one smmActivityTypeGroup record
Get this data out
Tables are not exposed directly. These public entities read from SMAAgreementTable; use one of them in Power BI, Power Platform or a data management project.
SMAServiceAgreementHeaderEntity· 12 fields from this table
Need help with SMAAgreementTable in a report, an integration or a migration? Talk to Dr Dynamics.