Nov 27 2018 09:35 PM - last edited on Nov 09 2023 11:10 AM by
is it possible to read Microsoft forms submitted data . we are exploring concepts and would like to get data of submitted forms using API.
Nov 29 2018 02:32 AM
Thank you very much for your ask. This API feature is in Microsoft Forms feature backlog
Aug 22 2019 11:33 PM
Hi
Is microsoft teams api now available to read form or is it still in progress.
I can see some links
https://docs.microsoft.com/en-us/kaizala/actions/kasclient/form_response
will it be of any healp to get data from teams forms.
Kindly let me know as soon as possible.
Thanks
Suresh
Dec 04 2019 12:32 PM
@Yong Qiu Is there any news on the Forms API, yet? Or is there an estimated schedule, like H2/2020 or so?
Dec 04 2019 01:29 PM - edited Dec 04 2019 01:30 PM
Hi @SureshC997
I think your link is for Kaizala and not for Forms or Forms Pro.
Cheers.
Kyaw Kyaw Tun
Dec 04 2019 04:14 PM
Until the long awaited API is released, a short term workaround could be to use Power Automate (formerly Microsoft Flow) to trigger when a new form is submitted, and to save the results into a SharePoint list, or Excel file, etc and to manipulate the data from there.
Power Automate puts some pretty cool options for not only extracting the Forms data but to also initiate other actions that can benefit you (e.g. put the results into a Word doc template and email to someone, etc).
Well worth a look!
Cheers
Damien
Dec 05 2019 03:28 AM
@Damien_Rosario I wouldn't call using Power Automate a workaround; it's designed for the job! And the integrations, as you've pointed out, with Email, SharePoint, Forms, Excel etc etc work beautifully.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Dec 05 2019 05:08 AM
Hi @RobElliott
Very true, the capability is there with some extra steps to capture the initial submission, but I reckon my suggestion is a workaround until the API comes out as there'll be more direct ways to get data out of Forms with its release.
Cheers
Damien
Jul 15 2020 10:28 AM
@Yong Qiu Is Graph able to pull in Forms APIs at this time?
Oct 29 2020 08:11 AM
@RobElliottYou can't do everything with Power Automate. For example, I want to create a single webpage where one can enter multiple names and email addresses. They all should get send a link to a form. At the moment you have to create an excel file with the names and email addresses? That's IT from the 90s
Oct 29 2020 08:14 AM
@helfensdoerfer I never said you could do everything with it and I am often telling people in my company that it can't do this or we need a premium connector for that. But seeing if it can do what you want for a particular task is a reasonable place to start.
Rob
Los Gallardos
Microsoft Power Automate Community Super User
Oct 29 2020 08:17 AM
@RobElliottYou are completely right! Just venting because Microsoft Forms is such a simple product and every 1 person startup today has an API for everything. Except one of the biggest IT companies in the world...
Apr 20 2021 11:37 AM
Aug 17 2021 09:05 AM
@ProtivitiDan Any more information about this? I can get JSON responses as you did, but was not successful getting form responses. Wondering if any documentation has appeared anywhere.
Sep 01 2021 10:33 AM
@waltksfc I abandoned my attempts at the time, but looking at it again now I see that I can get info on a specific form with:
https://forms.office.com/formapi/api/forms/{formid}
Then I can get the questions or responses on that form with these:
https://forms.office.com/formapi/api/forms/{formid}/questions
https://forms.office.com/formapi/api/forms/{formid}/responses
Get the {formid} from the /forms API call.
Sep 02 2021 11:01 AM
@ProtivitiDan - thanks for the reply. Yep - that works. Successfully retrieved JSON-formatted questions and responses - but only after logging in/authenticating in our O365 tenant. I can see that the Forms design page is making AJAX calls to the API, but it looks like it's passing some sort of access tokens in the request headers/cookie. It would be nice if Microsoft would publish some information about this, and allow some kind of persistent access token in the url/path for an API call - as they do when they provide a shared collaboration link.
At this point, I've already created a process to ingest the responses from a downloadable Excel sheet, so there's probably no advantage for me to use the API (since I have to be authenticated before it will work).
Thanks again - appreciate you taking the time to respond.
Sep 27 2021 12:49 PM - edited Sep 27 2021 12:50 PM
@waltksfc I needed the exact same thing, and thanks to you and @ProtivitiDan I was able to figure out the correct path.
If you want to make a custom connector for Forms in Flow, you'll need a way to handle authentication.
There are a lot of guides out there for how to make one. However, the relevant fields for this connector to work with Forms are:
When you make the connector definition, you insert any dynamic parameters in curly brackets in the request URL. For example, to make an action that requests all questions that are on a specific form, you'd use https://forms.office.com/formapi/api/forms/{formId}/questions for the URL and then formId will be a parameter that you'd fill in for the Flow's action.
I'm now able to authenticate to make web requests to Forms in a Flow so I know you'll be able to do it, too. Hopefully my little guide helps put you on the correct path!
Dec 06 2021 01:45 PM
Hello, @ProtivitiDan,
Do you know where can I find API documentation or any kind of guide?
I'm trying to retrieve responses for a specific QuestionId but can't seem to find the combination for the GET request.
Thank you!
Dec 06 2021 03:08 PM