Need assistance on creating Microsoft forms dynamically with questions and prefilled answers using c# MVC web app and generate form links

Vamshi Konatham 0 Reputation points
2025-02-04T07:30:22.0566667+00:00

Hello,

We have a requirement to create Microsoft forms specific to users with questions like textbox, dropdown, dropdown (multiselect) etc., and prepopulate or pre-fill the answers related to user specific data into the questions and then share the form link with the respective user and then we need to capture the user response from the form and update user's data in our database. I'm able to look at the documentation to read the user response for a Microsoft form (already created) using form id OAuth authentication but unable to find articles to create Microsoft forms dynamically with questions and prefilled answers and share the links with the users. We need to implement this programmatically using c# in MVC web application. Can you please let us know the possibility of achieving this and if so can you please share the articles for reference to implement the above mentioned functionality.

Thanks & Regards,
Vamshi

C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,268 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
1,065 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 70,686 Reputation points
    2025-02-04T23:14:59.4066667+00:00

    typically this would be two applications.

    a creator app that defined the questions, answer type, and values which was stored in a database.

    a user app that asked the question, and stored the answers in a database.

    you can get sample quiz programs which are pretty common. google "asp.net mvc quiz applications"

    sample (don't know quality):

    https://www.youtube.com/playlist?list=PLX4n-znUpc2Y8Thf9TjLn8D7pSYDcqubl

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.