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 descriptionType / EDT / enumMandatoryReferencesIn public entities
KMVirtualNetworkAnswerLinePoints to the questionnaire answer line that this history row describes.Int64
RefRecId
NoKMVirtualNetworkAnswerLine.RecIdNone
ValidToDate and time until which this history row applies.UtcDateTime
ValidToDateTime
NoNone
ValidFromDate and time from which this history row applies.UtcDateTime
ValidFromDateTime
NoNone
answerCollectionSequenceNumberSequence number linked to the answer.low confidenceInteger
KMAnswerCollectionSequenceNumber
YesNone
correctAnswerYes or No value showing whether the answer is the correct one.Enum
KMAnswerCorrectAnswer
NoYes (enum)
NoNone
DataAreaIdThe company (legal entity) that the record belongs to. System field.String (4)
DataAreaId
NoNone
kmQuestionIdIdentifier of the question, pointing to the questions table.String
KMQuestionId
YesKMQuestion.kmQuestionIdNone
kmQuestionResultGroupIdResult group that the question belongs to.String
KMQuestionResultGroupId
NoKMQuestionResultGroup.kmQuestionResultGroupIdNone
kmQuestionRowIdIdentifier of the row for the question.low confidenceString
KMQuestionRowId
NoNone
kmVirtualNetworkAnswerTableIdIdentifier of the answered or planned questionnaire this line belongs to.String
KMVirtualNetworkAnswerTableId
YesKMVirtualNetworkAnswerTable.kmVirtualNetworkAnswerTableIdNone
noteShort free-text note on the line, up to 500 characters.String (500)
CCNotesShort
NoNone
parentQuestionIdIdentifier of the primary question above this one.String
KMQuestionParentId
NoKMQuestion.kmQuestionIdNone
PartitionA system field for the data partition. In most environments every record has the same value. System field.Int64
Partition
NoNone
pointNumber of points given for the answer.Real
KMAnswerPoint
NoNone
questionTextText of the question, up to 500 characters.String (500)
KMQuestionText
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
sequenceNumberOrder number of the question within the questionnaire.Integer
KMCollectionQuestionSequenceNumber
NoNone
TableIdA system number that identifies the table. System field.Integer
TableId
NoNone
textThe answer given, as text up to 1,000 characters.String (1000)
KMVirtualNetworkAnswerAnswer
NoNone

Indexes (2)

Relations (7)

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

  • KMAnswer → KMAnswer

    Join on answerCollectionSequenceNumber = KMAnswer.sequenceNumber

    Many PurchReqQuestionnaireAnswerLineHistory records → exactly one KMAnswer record

  • KMQuestion → KMQuestion

    Join on kmQuestionId = KMQuestion.kmQuestionId

    Many PurchReqQuestionnaireAnswerLineHistory records → exactly one KMQuestion record

  • KMQuestionParent → KMQuestion

    Join on parentQuestionId = KMQuestion.kmQuestionId

    Many PurchReqQuestionnaireAnswerLineHistory records → zero or one KMQuestion record

  • KMQuestionResultGroup → KMQuestionResultGroup

    Join on kmQuestionResultGroupId = KMQuestionResultGroup.kmQuestionResultGroupId

    Many PurchReqQuestionnaireAnswerLineHistory records → zero or one KMQuestionResultGroup record

  • KMVirtualNetworkAnswerGroup → KMVirtualNetworkAnswerGroup

    Join on kmVirtualNetworkAnswerTableId = KMVirtualNetworkAnswerGroup.kmVirtualNetworkAnswerTableId, kmQuestionResultGroupId = KMVirtualNetworkAnswerGroup.kmQuestionResultGroupId

    Many PurchReqQuestionnaireAnswerLineHistory records → zero or one KMVirtualNetworkAnswerGroup record

  • KMVirtualNetworkAnswerLine → KMVirtualNetworkAnswerLine

    Join on KMVirtualNetworkAnswerLine = KMVirtualNetworkAnswerLine.RecId

    Many PurchReqQuestionnaireAnswerLineHistory records → zero or one KMVirtualNetworkAnswerLine record

  • KMVirtualNetworkAnswerTable → KMVirtualNetworkAnswerTable

    Join on kmVirtualNetworkAnswerTableId = KMVirtualNetworkAnswerTable.kmVirtualNetworkAnswerTableId

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

Email sales@drdynamics.co.uk