- I configure an Event Subscription for "surveyengine.completedResponse.{SurveyID}".
- Qualtrics sends a push notification to my server with the ResponseID and SurveyID each time {SurveyID} receives a response.
How do I then get the data associated with that response? From reading the documentation making a request to https://yourdatacenterid.qualtrics.com/API/v3/responseexports will give me ALL responses - I just want the single response.
Or, you could use v2.5 of the API and use getLegacyResponseData. It will return the single response you are looking for.
Qualtrics managed to change what was a relatively simple to program single API call in version 2.5 into a minimum of 3 API calls with a bunch programming around them in version 3.
We had a hosted solution that did this, but it has to happen in 4 steps, using the 'Responses Export' functionality of the API here: https://api.qualtrics.com/docs/create-response-export
1) You kick off the creation of the export with the call to `https://yourdatacenterid.qualtrics.com/API/v3/responseexports`, passing in the format you want it in, the surveyId you want exported, and filterable fields like StartDate, EndDate, Limit, etc.
2) That will return an Export Status ID (ES_xxx..), to which you can send to the 'Get Response Export Progress' Endpoint here: `https://yourdatacenterid.qualtrics.com/API/v3/responseexports/:responseExportId`. That will give you the `percentComplete` of the progress,
3) Then, once its finished, you call the 'Get Response Export File' Endpoint here: https://yourdatacenterid.qualtrics.com/API/v3/responseexports/:responseExportId/file.
4) It will respond with a ZIP folder of all your responses. From there, you unzip, extract, and read the first row of the responses to get your data.
That does seem like a lot, but we had a customer who's project required that exact solution. We were able to get that process down to less than 2 or 3 seconds at times.
Any idea if Qualtrics are going to (re)introduce the ability to query a response by Id in a single API call? v3.5 perhaps?
Is there any news on it?
> Hi!
> Is there any news on it?
Not that I've seen. It is not listed in the API Reference.
Hi. Any update on this? It seems to be a pretty coveted feature based on my online research. Be great to get an update a sto when this will be available.
Tenacious - It has been available for a few months: https://api.qualtrics.com/reference#getresponse-1
TomG that request allows me to get a survey response if I have the responseId. What I need is to get the responseId so that I can use it. I don't see a way to do this via API request
Tenacious - If you are triggering the call from an end of survey action or in a end of survey redirect, you pipe the response id as ${e://Field/ResponseID}.
I'm using Postman to simulate it. Any direction on how? I'm fairly new to the Qualtrics API
Look up some response ids for your survey under Data & Analysis.
Yeah I did that. Was just hoping to be able to fetch the responseId via API via the surveyID. That way I can develop an API process.
You can export all the responses for a survey id to get response ids. That's the 3 step process discussed earlier in this thread.
Maybe I should give more information as to what I am trying to accomplish.
I need to synchronise the SAP IDP users and groups with the users and groups in Qualtrics. Our IoT platform of over 300,000 Things uses the SAP IDP for authentication of around 3,000 users each belonging to various groups that are asserted to roles on the Portal and IoT platform for authorization.
We need to make surveys available to groups of these users but we obviously don't want to manage this separately.
So we thought that the best way to do this is when a user is assigned a user group in the IDP, our app can immediately update the same change in the Qualtrics structure.
That's the first requirement which we are able to manage via API.
The next requirement is to manage the surveys and responses to update our master data with response data and scores. This is where we currently are facing a challenge.
I hope that with this background you are able to have enough insight into our challenge to assist.
Yes, as I said above:
Tenacious - If you are triggering the call from an end of survey action or in a end of survey redirect, you pipe the response id as ${e://Field/ResponseID}.
You want to use an action to run a web service when there is a survey response. Pass the SurveyID and ResponseID to your web service.
Thanks TomG . Let me try that.
@AndyMc,
I have no idea. All three of us should submit a feature request for it!
I did a feature request as well. Let’s see if we get back this pretty rudimentary API endpoint...
In the official docs the “official workaround” is documented as well now. https://api.qualtrics.com/5e86e383167d5-getting-survey-responses-via-the-new-export-ap-is#getting-survey-responses-using-new-export-apis It’s basically a CLI replacement for downloading a file via the UI.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.