Table

ERModelMappingTable

Model mapping

Stores model mappings for electronic reporting. Each mapping has a name and belongs to a configuration, which together make up its key. It links to a data model, a base version and a record definition. It has a direction, either to the model or to the destination.

Table name
ERModelMappingTable
Module
Cross-module and platform
Table group
Miscellaneous
Table type
Regular
Data per company
No
Configuration key
None
Primary index
None
Replacement key
NameSolutionldx
Key fields
Name, Solution
Model
ElectronicReporting

Fields (19)

Field and descriptionType / EDT / enumMandatoryReferencesIn public entities
NameName of the model mapping.String (60)
Name
NoBrazilianElectronicReportingParametersEntityVendVendorParametersEntity
SolutionPoints to the configuration that the mapping belongs to.Int64
ERSolutionID
NoERSolutionTable.RecIdNone
BasePoints to the model mapping version used as the base.Int64
RefRecId
NoERModelMappingVersionTable.RecIdNone
ConflictsXMLXML text that records conflicts.String (-1)
ERConflictsXML
NoNone
DataContainerDescriptorPoints to the record definition used by the mapping.Int64
ERDataContainerDescriptorTableID
NoERDataContainerDescriptorTable.RecIdNone
DataModelPoints to the data model that this mapping uses.Int64
RefRecId
YesERDataModelTable.RecIdNone
DeltaXMLXML text that records the changes (delta).String (-1)
ERDeltaXML
NoNone
DescriptionShort text that describes the mapping.String (60)
Description
NoNone
DirectionShows whether the mapping goes to the model or to the destination.Enum
ERModelMappingDirection (enum)
NoNone
GUIDGlobally unique ID of the mapping.Guid
ERGUID
NoNone
IsDefaultYes/no flag. Its label says Deleted object, but the type suggests a default flag, so the meaning is unclear.low confidenceEnum
ERIsDefaultMapping
NoYes (enum)
NoNone
IsDeletedYes/no flag that marks the mapping as deleted.Enum
ERIsDeleted
NoYes (enum)
YesNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
PriorBasePoints to the earlier base version of the mapping.Int64
RefRecId
NoERModelMappingVersionTable.RecIdNone
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
SysRowVersionA system row version number that is used for change tracking. System field.Int64
SysRowVersion
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
XMLThe mapping stored as an XML document.String (-1)
XML
NoNone

Indexes (2)

  • GUIDIdx

    GUID

    Unique.

  • NameSolutionldxReplacement key

    Name, Solution

    Unique, alternate key.

Relations (6)

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

  • Base → ERModelMappingVersionTable

    Join on Base = ERModelMappingVersionTable.RecId

    Many ERModelMappingTable records → zero or one ERModelMappingVersionTable record

  • dataModel → ERDataModelTable

    Join on DataModel = ERDataModelTable.RecId

    Many ERModelMappingTable records → exactly one ERDataModelTable record

  • Solution → ERSolutionTable

    Join on Solution = ERSolutionTable.RecId

    Many ERModelMappingTable records → zero or one ERSolutionTable record

  • DataContainerDescriptor → ERDataContainerDescriptorTable

    Join on DataContainerDescriptor = ERDataContainerDescriptorTable.RecId

    Many ERModelMappingTable records → zero or one ERDataContainerDescriptorTable record

  • DataContainerDescriptorWithModelLimitation → ERDataContainerDescriptorTable

    Join on DataContainerDescriptor = ERDataContainerDescriptorTable.RecID, DataModel = ERDataContainerDescriptorTable.Model

    Many ERModelMappingTable records → zero or one ERDataContainerDescriptorTable record

  • PriorBase → ERModelMappingVersionTable

    Join on PriorBase = ERModelMappingVersionTable.RecId

    Many ERModelMappingTable records → zero or one ERModelMappingVersionTable record

Get this data out

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

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

Email sales@drdynamics.co.uk