Table
KMCollectionQuestion
Questionnaire questions
Links questions to questionnaires. The key is the questionnaire plus the question. Each line can have a sequence number, a parent question, a result group, an answer and a result calculation mode.
- Table name
KMCollectionQuestion- Module
Cross-module and platform- Table group
Group- Table type
Regular- Data per company
Yes- Configuration key
KMQuestionnaireBasic- Primary index
RecId- Replacement key
CollectionQuestionIdx- Key fields
kmCollectionId, kmQuestionId- Model
PersonnelManagement
Fields (13)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
kmCollectionIdQuestionnaire this line belongs to. | StringKMCollectionId | Yes | KMCollection.kmCollectionId | VRMQuestionnaireAnswerEntityVRMQuestionnaireQuestionEntity |
kmQuestionIdQuestion included in the questionnaire. | StringKMQuestionId | Yes | KMQuestion.kmQuestionId | VRMQuestionnaireQuestionEntity |
answerCollectionSequenceNumberSequence number of the answer linked to this question line. | IntegerKMAnswerCollectionSequenceNumber | No | VRMQuestionnaireQuestionEntity | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | VRMQuestionnaireQuestionEntity | |
kmQuestionResultGroupIdResult group that the question belongs to in this questionnaire. | StringKMQuestionResultGroupId | No | KMQuestionResultGroup.kmQuestionResultGroupId | None |
mandatoryYes/No flag showing whether the question must be completed. | EnumKMQuestionMandatoryNoYes (enum) | No | VRMQuestionnaireQuestionEntity | |
parentQuestionIdPrimary question that this question depends on. | StringKMQuestionParentId | No | KMQuestion.kmQuestionId | VRMQuestionnaireQuestionEntity |
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 | |
resultModeHow the result is calculated: none, questions, answer, or question if not answered. | EnumKMCollectionQuestionResultMode (enum) | No | None | |
sequenceNumberPosition of the question within the questionnaire. | IntegerKMCollectionQuestionSequenceNumber | No | VRMQuestionnaireQuestionEntity | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None |
Indexes (4)
CollectionParentIdxkmCollectionId,parentQuestionId,kmQuestionIdUnique, alternate key.
CollectionQuestionIdxReplacement keyUnique, alternate key.
CollectionQuestionSequencekmCollectionId,sequenceNumberNot unique.
CollectionResultGroupIdxkmCollectionId,kmQuestionResultGroupIdNot unique.
Relations (5)
Each relation joins KMCollectionQuestion to another table on the fields shown.
KMCollection→KMCollectionJoin on
kmCollectionId = KMCollection.kmCollectionIdMany KMCollectionQuestion records → exactly one KMCollection record
KMCollectionQuestion→KMCollectionQuestionJoin on
kmCollectionId = KMCollectionQuestion.kmCollectionId,kmQuestionId = KMCollectionQuestion.kmQuestionIdCardinality not set in the metadata.
KMParentQuestion→KMQuestionJoin on
parentQuestionId = KMQuestion.kmQuestionIdMany KMCollectionQuestion records → zero or one KMQuestion record
KMQuestion→KMQuestionJoin on
kmQuestionId = KMQuestion.kmQuestionIdMany KMCollectionQuestion records → exactly one KMQuestion record
KMQuestionResultGroup→KMQuestionResultGroupJoin on
kmQuestionResultGroupId = KMQuestionResultGroup.kmQuestionResultGroupId,kmCollectionId = KMQuestionResultGroup.kmCollectionIdMany KMCollectionQuestion records → zero or one KMQuestionResultGroup record
Get this data out
Tables are not exposed directly. These public entities read from KMCollectionQuestion; use one of them in Power BI, Power Platform or a data management project.
VRMQuestionnaireAnswerEntity· 1 field from this tableVRMQuestionnaireQuestionEntity· 7 fields from this table
Need help with KMCollectionQuestion in a report, an integration or a migration? Talk to Dr Dynamics.