Populating embedded variables using data from a previous survey | XM Community
Skip to main content

I have two surveys. The second survey is a redirect from the first survey.

I have about 20-30 fields (including personal data) in the first survey that I’d like to include in the Qualtrics data in the second survey, so I didn’t want to pass the fields in the URL. I don’t need to reference the fields during the second survey, but would like them merged into/ included in the data for the second survey.

Both surveys have a common “ID”.

I appreciate that it would be quite straightforward to download both data files and merge that way, but I ideally need them merged within Qualtrics.

Is there an easyish way to do this? Is it possible with workflows?

Thank you

@MikeW You could pass the response ID of the 1st survey as query string for the 2nd survey. The response ID is nothing critical. Then add a webservice element for the 2nd survey which uses the retrieve response API to read the details of the 1st survey. The only additional information required for the API request is the survey ID of the 1st survey. I would probably just hardcode it instead of including it in the query string. Set the response data as embedded data within the webservice element so that it is stored to the 2nd survey response. As it may take some short time until the 1st survey response is persisted on Qualtrics database and can be retrieved from the API, you should not place it at the start but rather at the end of the 2nd survey. This should be fine if you do not need the data for any logic in the 2nd survey.


@MikeW You could pass the response ID of the 1st survey as query string for the 2nd survey. The response ID is nothing critical. Then add a webservice element for the 2nd survey which uses the retrieve response API to read the details of the 1st survey. The only additional information required for the API request is the survey ID of the 1st survey. I would probably just hardcode it instead of including it in the query string. Set the response data as embedded data within the webservice element so that it is stored to the 2nd survey response. As it may take some short time until the 1st survey response is persisted on Qualtrics database and can be retrieved from the API, you should not place it at the start but rather at the end of the 2nd survey. This should be fine if you do not need the data for any logic in the 2nd survey.

Perfect. Thank you


Leave a Reply