Table
PurchReqQuestionnaireAnswerLineHistory
Lines on answered/planned questionnaires
Keeps a time-stamped history of the lines on answered or planned questionnaires. Each row links to an answer line and holds the question, the answer text, points and the correct-answer flag, for a validity period.
- Table name
PurchReqQuestionnaireAnswerLineHistory- Module
Procurement and sourcing- Table group
Transaction- Table type
Regular- Data per company
Yes- Configuration key
KMQuestionnaireBasic- Primary index
RecId- Replacement key
LineIdx- Key fields
KMVirtualNetworkAnswerLine, ValidTo, ValidFrom- Model
Foundation
Fields (20)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
KMVirtualNetworkAnswerLinePoints to the questionnaire answer line that this history row describes. | Int64RefRecId | No | KMVirtualNetworkAnswerLine.RecId | None |
ValidToDate and time until which this history row applies. | UtcDateTimeValidToDateTime | No | None | |
ValidFromDate and time from which this history row applies. | UtcDateTimeValidFromDateTime | No | None | |
answerCollectionSequenceNumberSequence number linked to the answer.low confidence | IntegerKMAnswerCollectionSequenceNumber | Yes | None | |
correctAnswerYes or No value showing whether the answer is the correct one. | EnumKMAnswerCorrectAnswerNoYes (enum) | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
kmQuestionIdIdentifier of the question, pointing to the questions table. | StringKMQuestionId | Yes | KMQuestion.kmQuestionId | None |
kmQuestionResultGroupIdResult group that the question belongs to. | StringKMQuestionResultGroupId | No | KMQuestionResultGroup.kmQuestionResultGroupId | None |
kmQuestionRowIdIdentifier of the row for the question.low confidence | StringKMQuestionRowId | No | None | |
kmVirtualNetworkAnswerTableIdIdentifier of the answered or planned questionnaire this line belongs to. | StringKMVirtualNetworkAnswerTableId | Yes | KMVirtualNetworkAnswerTable.kmVirtualNetworkAnswerTableId | None |
noteShort free-text note on the line, up to 500 characters. | String (500)CCNotesShort | No | None | |
parentQuestionIdIdentifier of the primary question above this one. | StringKMQuestionParentId | No | KMQuestion.kmQuestionId | None |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
pointNumber of points given for the answer. | RealKMAnswerPoint | No | None | |
questionTextText of the question, up to 500 characters. | String (500)KMQuestionText | 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 | |
sequenceNumberOrder number of the question within the questionnaire. | IntegerKMCollectionQuestionSequenceNumber | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
textThe answer given, as text up to 1,000 characters. | String (1000)KMVirtualNetworkAnswerAnswer | No | None |
Indexes (2)
LineIdxReplacement keyKMVirtualNetworkAnswerLine,ValidTo,ValidFromUnique, alternate key.
kmVirtualNetworkAnswerTableIdNot unique.
Relations (7)
Each relation joins PurchReqQuestionnaireAnswerLineHistory to another table on the fields shown.
KMAnswer→KMAnswerJoin on
answerCollectionSequenceNumber = KMAnswer.sequenceNumberMany PurchReqQuestionnaireAnswerLineHistory records → exactly one KMAnswer record
KMQuestion→KMQuestionJoin on
kmQuestionId = KMQuestion.kmQuestionIdMany PurchReqQuestionnaireAnswerLineHistory records → exactly one KMQuestion record
KMQuestionParent→KMQuestionJoin on
parentQuestionId = KMQuestion.kmQuestionIdMany PurchReqQuestionnaireAnswerLineHistory records → zero or one KMQuestion record
KMQuestionResultGroup→KMQuestionResultGroupJoin on
kmQuestionResultGroupId = KMQuestionResultGroup.kmQuestionResultGroupIdMany PurchReqQuestionnaireAnswerLineHistory records → zero or one KMQuestionResultGroup record
KMVirtualNetworkAnswerGroup→KMVirtualNetworkAnswerGroupJoin on
kmVirtualNetworkAnswerTableId = KMVirtualNetworkAnswerGroup.kmVirtualNetworkAnswerTableId,kmQuestionResultGroupId = KMVirtualNetworkAnswerGroup.kmQuestionResultGroupIdMany PurchReqQuestionnaireAnswerLineHistory records → zero or one KMVirtualNetworkAnswerGroup record
KMVirtualNetworkAnswerLine→KMVirtualNetworkAnswerLineJoin on
KMVirtualNetworkAnswerLine = KMVirtualNetworkAnswerLine.RecIdMany PurchReqQuestionnaireAnswerLineHistory records → zero or one KMVirtualNetworkAnswerLine record
KMVirtualNetworkAnswerTable→KMVirtualNetworkAnswerTableJoin on
kmVirtualNetworkAnswerTableId = KMVirtualNetworkAnswerTable.kmVirtualNetworkAnswerTableIdMany PurchReqQuestionnaireAnswerLineHistory records → exactly one KMVirtualNetworkAnswerTable record
Get this data out
No public entity reads from PurchReqQuestionnaireAnswerLineHistory. Its data is only reachable through the application, a custom entity or a database export.
Need help with PurchReqQuestionnaireAnswerLineHistory in a report, an integration or a migration? Talk to Dr Dynamics.