Table

SMAAgreementLine

Service agreement lines

Holds the lines of a service agreement. The key is the agreement ID and the line number. A line sets the service object, item, project, dates, service interval, time window and transaction type (hour, expense, item or fee).

Table name
SMAAgreementLine
Module
Service management
Table group
WorksheetLine
Table type
Regular
Data per company
Yes
Configuration key
SMAManagement
Primary index
AgreementLineNumIdx
Replacement key
AgreementLineNumIdx
Key fields
AgreementId, AgreementLineNum
Model
Foundation

Fields (35)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
AgreementIdService agreement that the line belongs to.String
SMAAgreementId
YesSMAAgreementTable.AgreementIdSMAServiceAgreementLineEntity
AgreementLineNumLine number within the agreement.Integer
SMAAgreementLineNum
NoSMAServiceAgreementLineEntity
ActivityNumberActivity linked to the line.String (50)
ProjActivityNumber
NosmmActivities.ActivityNumberSMAServiceAgreementLineEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
DefaultDimensionDefault financial dimension set for the line.Int64
InventSiteSMAItemLinkedDimensionValueSet
NoDimensionAttributeValueSet.RecIdSMAServiceAgreementLineEntity
DescriptionShort description of the line.String (60)
Description
NoSMAServiceAgreementLineEntity
DescriptionServiceLonger text describing the service.String (1000)
SMADescription
NoSMAServiceAgreementLineEntity
EndDateDate on which the line ends.Date
EndDate
NoSMAServiceAgreementLineEntity
IntervalIdService interval used by the line.String
SMAIntervalId
NoSMAAgreementInterval.IntervalIdSMAServiceAgreementLineEntity
InventDimIdInventory dimension combination for the item.String (20)
InventDimId
NoInventDim.inventDimIdNone
ItemIdItem number on the line.String (20)
ItemId
NoInventTable.ItemIdSMAServiceAgreementLineEntity
ItemSetupTypeItem setup: item journal or item requirement.Enum
SMAItemSetupType (enum)
NoSMAServiceAgreementLineEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
ProjCategoryIdProject category for the line.String (30)
ProjCategoryId
YesProjCategory.CategoryIdSMAServiceAgreementLineEntity
ProjCurrencyIdSales currency code for the line.String (3)
ProjSalesCurrencyCode
YesCurrency.CurrencyCodeSMAServiceAgreementLineEntity
ProjIdProject linked to the line.String (20)
SMAProjId
YesProjTable.ProjIdSMAServiceAgreementLineEntity
ProjLinePropertyIdProject line property for the line.String
ProjLinePropertyId
YesProjLineProperty.LinePropertyIdSMAServiceAgreementLineEntity
ProjTaxGroupIdSales tax group for the line.String
ProjTaxGroup
NoTaxGroupHeading.TaxGroupSMAServiceAgreementLineEntity
ProjTaxItemGroupIdItem sales tax group for the line.String
ProjTaxItemGroup
NoTaxItemGroupHeading.TaxItemGroupSMAServiceAgreementLineEntity
ProjTransTxtTransaction text for the line.String (60)
TransTxt
NoSMAServiceAgreementLineEntity
QtyQuantity on the line.Real
SMAQuantity
NoNone
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field.Int64
RecId
NoNone
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field.Integer
RecVersion
NoNone
ServiceObjectIdService object that the line applies to.String (20)
SMAServiceObjectId
NoSMAServiceObjectTable.ServiceObjectIdSMAServiceAgreementLineEntity
ServiceObjectRelationIdService object relation used by the line.String (20)
SMAServiceObjectRelationId
NoSMAServiceAgreementLineEntity
ServiceTaskIdService task for the line.String
SMAServiceTaskId
NoSMAServiceTask.ServiceTaskIdSMAServiceAgreementLineEntity
ServiceTimeEndBeforeTime of day by which the service must end.Time
SMAEndBeforeTime
NoSMAServiceAgreementLineEntity
ServiceTimeStartAfterTime of day after which the service can start.Time
SMAStartAfter
NoSMAServiceAgreementLineEntity
StartDateDate on which the line starts.Date
StartDate
YesSMAServiceAgreementLineEntity
SuspendedYes/no flag showing whether the line is stopped.Enum
NoYesId
NoYes (enum)
NoSMAServiceAgreementLineEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
TimeAgreementIdTime window linked to the line.String
SMATimeAgreementId
NoSMATimeAgreement.TimeAgreementIdSMAServiceAgreementLineEntity
TransactionTypeTransaction type of the line: hour, expense, item or fee.Enum
SMATransactionType (enum)
NoSMAServiceAgreementLineEntity
UnitUnit of measure for the line.String
UnitOfMeasureSymbol
NoUnitOfMeasure.SymbolSMAServiceAgreementLineEntity
WorkerWorker linked to the line.Int64
SMAWorker
NoHcmWorker.RecIdNone

Indexes (3)

Relations (19)

Each relation joins SMAAgreementLine to another table on the fields shown.

  • DefaultDimension → DimensionAttributeValueSet

    Join on DefaultDimension = DimensionAttributeValueSet.RecId

    Many SMAAgreementLine records → zero or one DimensionAttributeValueSet record

  • HcmWorker → HcmWorker

    Join on Worker = HcmWorker.RecId

    Many SMAAgreementLine records → zero or one HcmWorker record

  • InventDim → InventDim

    Join on InventDimId = InventDim.inventDimId

    Many SMAAgreementLine records → zero or one InventDim record

  • InventTable → InventTable

    Join on ItemId = InventTable.ItemId

    Many SMAAgreementLine records → zero or one InventTable record

  • ProjCategory → ProjCategory

    Join on ProjCategoryId = ProjCategory.CategoryId

    Many SMAAgreementLine records → exactly one ProjCategory record

  • ProjectSalesCurrency → Currency

    Join on ProjCurrencyId = Currency.CurrencyCode

    Many SMAAgreementLine records → exactly one Currency record

  • ProjectTaxGroupHeading → TaxGroupHeading

    Join on ProjTaxGroupId = TaxGroupHeading.TaxGroup

    Many SMAAgreementLine records → zero or one TaxGroupHeading record

  • ProjectTaxItemGroupHeading → TaxItemGroupHeading

    Join on ProjTaxItemGroupId = TaxItemGroupHeading.TaxItemGroup

    Many SMAAgreementLine records → zero or one TaxItemGroupHeading record

  • ProjLineProperty → ProjLineProperty

    Join on ProjLinePropertyId = ProjLineProperty.LinePropertyId

    Many SMAAgreementLine records → exactly one ProjLineProperty record

  • ProjTable → ProjTable

    Join on ProjId = ProjTable.ProjId

    Many SMAAgreementLine records → exactly one ProjTable record

  • SMAAgreementInterval → SMAAgreementInterval

    Join on IntervalId = SMAAgreementInterval.IntervalId

    Many SMAAgreementLine records → zero or one SMAAgreementInterval record

  • SMAAgreementTable → SMAAgreementTable

    Join on AgreementId = SMAAgreementTable.AgreementId

    Many SMAAgreementLine records → exactly one SMAAgreementTable record

  • SMAServiceObjectRelation → SMAServiceObjectRelation

    Join on ServiceObjectRelationId = SMAServiceObjectRelation.ServiceObjectRelationId

    Many SMAAgreementLine records → zero or one SMAServiceObjectRelation record

  • SMAServiceObjectTable → SMAServiceObjectTable

    Join on ServiceObjectId = SMAServiceObjectTable.ServiceObjectId

    Many SMAAgreementLine records → zero or one SMAServiceObjectTable record

  • SMAServiceOrderLine → SMAServiceOrderLine

    Join on AgreementId = SMAServiceOrderLine.AgreementId, AgreementLineNum = SMAServiceOrderLine.AgreementLineNum

    Many SMAAgreementLine records → zero or one SMAServiceOrderLine record

  • SMAServiceTask → SMAServiceTask

    Join on ServiceTaskId = SMAServiceTask.ServiceTaskId

    Many SMAAgreementLine records → zero or one SMAServiceTask record

  • SMATimeAgreement → SMATimeAgreement

    Join on TimeAgreementId = SMATimeAgreement.TimeAgreementId

    Many SMAAgreementLine records → zero or one SMATimeAgreement record

  • smmActivities → smmActivities

    Join on ActivityNumber = smmActivities.ActivityNumber

    Many SMAAgreementLine records → zero or one smmActivities record

  • Unit → UnitOfMeasure

    Join on Unit = UnitOfMeasure.Symbol

    Many SMAAgreementLine records → zero or one UnitOfMeasure record

Get this data out

Tables are not exposed directly. These public entities read from SMAAgreementLine; use one of them in Power BI, Power Platform or a data management project.

Need help with SMAAgreementLine in a report, an integration or a migration? Talk to Dr Dynamics.

Email sales@drdynamics.co.uk