Data entity
SMAServiceAgreementHeaderEntity
Holds the header of each service agreement, keyed by service agreement ID. It covers the description, start and end dates, group, template group and service level agreement. It also holds contact, project and project customer details. It links to workers (preferred technician, service responsible) and to projects.
- Entity name
SMAServiceAgreementHeaderEntity- Public entity name
ServiceAgreementHeader- OData collection
ServiceAgreementHeaders- Category
Document- Module
Service management- Read-only
No- Data management enabled
Yes- Configuration key
SMAManagement- Keys
ServiceAgreementId- Staging table
SMAServiceAgreementHeaderStaging
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/ServiceAgreementHeaders- Dataverse virtual table
mserp_smaserviceagreementheaderentity. 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
SMAAgreementTable· rootHcmWorker_PreferredTechnician(tableHcmWorker) · OuterJoin toSMAAgreementTable· read-onlyHcmWorker_ServiceResponsible(tableHcmWorker) · OuterJoin toSMAAgreementTable· read-onlyProjTable· OuterJoin toSMAAgreementTable· read-only
Fields (15)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
CombineServiceOrderMethodHow service orders are combined: by agreement, task, employee or service object. | Enum
| No | Yes | SMAAgreementTable.GroupBy | |
ContactPersonIdContact person for the agreement. | String (20)SMAContactPersonId | No | Yes | ContactPerson.ContactPersonId | SMAAgreementTable.ContactPersonId |
DefaultLineActivityTypeIdDefault activity type for the agreement lines. | String (20)smmActivityTypeId | No | Yes | smmActivityTypeGroup.TypeId | SMAAgreementTable.ActivityTypeId |
IsAgreementSuspendedYes/no flag showing whether the agreement is suspended. | Enum
| No | Yes | SMAAgreementTable.Suspended | |
PreferredTechnicianPersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber | |
ProjectCustomerAccountNumberCustomer account for the project, pointing to the customers table. | String (20)CustAccount | No | Yes | CustTable.AccountNum | ProjTable.CustAccount |
ProjectIdProject linked to the agreement. | String (20)ProjId | Yes | Yes | ProjTable.ProjId | SMAAgreementTable.ProjId |
ServiceAgreementDescriptionShort description of the agreement. | String (60)Description | No | Yes | SMAAgreementTable.AgreementDescription | |
ServiceAgreementEndDateDate on which the agreement ends. | DateEndDate | No | Yes | SMAAgreementTable.EndDate | |
ServiceAgreementGroupIdService agreement group that the agreement belongs to. | StringSMAAgreementGroupId | Yes | Yes | SMAAgreementGroup.AgreementGroup | SMAAgreementTable.AgreementGroupId |
ServiceAgreementStartDateDate on which the agreement starts. | DateStartDate | Yes | Yes | SMAAgreementTable.StartDate | |
ServiceAgreementIdUnique ID of the service agreement. | StringSMAAgreementId | No | Yes | SMAAgreementTable.AgreementId | |
ServiceAgreementTemplateGroupIdService template group linked to the agreement. | StringSMATemplateGroupId | No | Yes | SMATemplateGroup.TemplateGroupId | SMAAgreementTable.TemplateGroupId |
ServiceLevelAgreementIdService level agreement linked to the agreement. | StringSMAServiceLevelAgreementId | No | Yes | SMAServiceLevelAgreementTable.ServiceLevelAgreementId | SMAAgreementTable.ServiceLevelAgreementId |
ServiceResponsiblePersonnelNumberNumber that identifies the worker within the organisation. | String (25)HcmPersonnelNumberId | No | Yes | HcmWorker.PersonnelNumber |
Foreign keys (7)
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.
ContactPersonId→ContactPerson.ContactPersonId(key of ContactPerson)Many SMAAgreementTable records → zero or one ContactPerson record
ContactPerson details: see smmContactPersonV2Entity, smmContactPersonCDSV2Entity, BusinessDocumentSalesInvoiceBaseEntity
DefaultLineActivityTypeId→smmActivityTypeGroup.TypeId(key of smmActivityTypeGroup)Many SMAAgreementTable records → zero or one smmActivityTypeGroup record
Not exposed by a public entity.
ProjectCustomerAccountNumber→CustTable.AccountNum(key of CustTable)Many ProjTable records → zero or one CustTable record
CustTable details: see CustCustomerV3Entity, CustFoundationExtendedEntity, CustFoundationEntity
ProjectId→ProjTable.ProjId(key of ProjTable)Many SMAAgreementTable records → exactly one ProjTable record
ProjTable details: see ProjectEntity, ProjProjectV2Entity, ProjCDSProjectEntity
ServiceAgreementGroupId→SMAAgreementGroup.AgreementGroup(key of SMAAgreementGroup)Many SMAAgreementTable records → exactly one SMAAgreementGroup record
Not exposed by a public entity.
ServiceAgreementTemplateGroupId→SMATemplateGroup.TemplateGroupId(key of SMATemplateGroup)Many SMAAgreementTable records → zero or one SMATemplateGroup record
Not exposed by a public entity.
ServiceLevelAgreementId→SMAServiceLevelAgreementTable.ServiceLevelAgreementId(key of SMAServiceLevelAgreementTable)Many SMAAgreementTable records → zero or one SMAServiceLevelAgreementTable record
SMAServiceLevelAgreementTable details: see SMAServiceLevelAgreementEntity
Need help with SMAServiceAgreementHeaderEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.