CreateSurveyResponse
Creates a new response on a collector.
Stored Procedure-Specific Information
This stored procedure creates a new response on a collector. The Pages parameter accepts a JSON array of page objects with questions and answers.To execute this procedure, enter:
EXEC CreateSurveyResponse CollectorId = '462259674', IpAddress = '127.0.0.1', Pages = '[{"id": "69707378", "questions": [{"id": "261420303", "answers": [{"choice_id": "1841449994"}]}]}]'
Input
| Name | Type | Required | Description |
| CollectorId | String | True | The colletor ID. |
| CustomVariables | String | False | Values to any available custom variables in the survey. |
| CustomValue | String | False | A custom value to attach to the response for a weblink collector. |
| ResponseStatus | String | False | Status of the response: completed, partial, overquota, disqualified. |
| IpAddress | String | False | IP Address the response was taken from. |
| RecipientId | Int64 | False | The recipient ID from an email collector. Required for email collectors. |
| Pages | String | True | Pages from the survey and their associated responses. |
Result Set Columns
| Name | Type | Description |
| ResponseId | String | The ID of the created response if the operation was executed successfully. |
| Success | Boolean | Whether the operation was successful or not. |