ADO.NET Provider for SurveyMonkey

Build 26.0.9655

CreateSurveyQuestion

Creates a new question on a survey page.

Stored Procedure-Specific Information

This stored procedure creates a new question on a survey page. The Headings and Answers parameters accept JSON objects.

To execute this procedure, enter:

EXEC CreateSurveyQuestion SurveyId = '159264293', PageId = '44829950', Headings = '[{"heading": "What is your favorite color?"}]', Family = 'single_choice', Subtype = 'vertical', Answers = '{"choices": [{"text": "Red", "visible": true, "position": 1}, {"text": "Blue", "visible": true, "position": 2}, {"text": "Green", "visible": true, "position": 3}]}', Position = '3'

Input

Name Type Required Description
SurveyId String True The survey ID.
PageId String True The page ID.
Headings String True List of question headings objects.
Position Int32 False Position of question on page.
Family String True Question family determines the type of question.
Subtype String True Question family's subtype further specifies the type of question.
Sorting String False Sorting details of answers.
Required Boolean False Whether an answer is required for this question.
Validation String False Whether the answer must pass certain validation parameters.
ForcedRanking Boolean False Required if type is matrix and subtype is rating or single, whether or not to force ranking.
QuizOptions String False Object containing the quiz properties of this question, if quiz-mode is enabled.
Answers String True Answers object. Required for all question types except open_ended_single.
DisplayOptions String False Display option object. Required for file upload, slider, image choice & emoji/star rating question types.

Result Set Columns

Name Type Description
QuestionId String The ID of the created question if the operation was executed successfully.
Success Boolean Whether the operation was successful or not.

Copyright (c) 2026 CData Software, Inc. - All rights reserved.
Build 26.0.9655