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 descriptionType / EDT / enumMandatoryReferencesIn public entities
kmCollectionIdQuestionnaire this line belongs to.String
KMCollectionId
YesKMCollection.kmCollectionIdVRMQuestionnaireAnswerEntityVRMQuestionnaireQuestionEntity
kmQuestionIdQuestion included in the questionnaire.String
KMQuestionId
YesKMQuestion.kmQuestionIdVRMQuestionnaireQuestionEntity
answerCollectionSequenceNumberSequence number of the answer linked to this question line.Integer
KMAnswerCollectionSequenceNumber
NoVRMQuestionnaireQuestionEntity
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoVRMQuestionnaireQuestionEntity
kmQuestionResultGroupIdResult group that the question belongs to in this questionnaire.String
KMQuestionResultGroupId
NoKMQuestionResultGroup.kmQuestionResultGroupIdNone
mandatoryYes/No flag showing whether the question must be completed.Enum
KMQuestionMandatory
NoYes (enum)
NoVRMQuestionnaireQuestionEntity
parentQuestionIdPrimary question that this question depends on.String
KMQuestionParentId
NoKMQuestion.kmQuestionIdVRMQuestionnaireQuestionEntity
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
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
resultModeHow the result is calculated: none, questions, answer, or question if not answered.Enum
KMCollectionQuestionResultMode (enum)
NoNone
sequenceNumberPosition of the question within the questionnaire.Integer
KMCollectionQuestionSequenceNumber
NoVRMQuestionnaireQuestionEntity
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone

Indexes (4)

Relations (5)

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

  • KMCollection → KMCollection

    Join on kmCollectionId = KMCollection.kmCollectionId

    Many KMCollectionQuestion records → exactly one KMCollection record

  • KMCollectionQuestion → KMCollectionQuestion

    Join on kmCollectionId = KMCollectionQuestion.kmCollectionId, kmQuestionId = KMCollectionQuestion.kmQuestionId

    Cardinality not set in the metadata.

  • KMParentQuestion → KMQuestion

    Join on parentQuestionId = KMQuestion.kmQuestionId

    Many KMCollectionQuestion records → zero or one KMQuestion record

  • KMQuestion → KMQuestion

    Join on kmQuestionId = KMQuestion.kmQuestionId

    Many KMCollectionQuestion records → exactly one KMQuestion record

  • KMQuestionResultGroup → KMQuestionResultGroup

    Join on kmQuestionResultGroupId = KMQuestionResultGroup.kmQuestionResultGroupId, kmCollectionId = KMQuestionResultGroup.kmCollectionId

    Many 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.

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

Email sales@drdynamics.co.uk