Interaction.GetResponseHistory
Method | GetResponseHistory |
---|---|
Module | Interaction |
Library | Core |
Action | Get a response history of User Interaction surveys. |
Parameters | (None) |
Return values |
This value is empty if there was no free text field as part of the survey, or if the user never entered a value for this field.
The highest ordered choice (first in the table of choices) will have a response value of 1. The lowest ordered choice (last in the table of choices) will have a response value of 0. Those in between will be allocated a fractional value between 1 and 0 relative to their position. For example, if the choices are: (Great, Good, Average, Poor, Terrible) then these will be scored: Great=1.0, Good=0.75, Average=0.5, Poor=0.25, Terrible=0.
|
Example | @surveyResponses = Interaction.GetResponseHistory(); SELECT FreeText, Response, ResponseValue, SurveyName, UserName FROM @surveyResponses WHERE ResponseType = "responded" AND Invalidated = false AND JULIANDAY(ValidityTime) > JULIANDAY(DATETIME("now")); |
Platforms |
|
Notes | For more details on what is considered an active or valid response, see Interaction.ShowSurvey. |