Add encoded query string with piped text from two questions (using q_eed) | XM Community
Skip to main content

Hi,

 

I am trying to pass Base64 encoded information from a baseline survey to a follow-up survey using email distributions and individual links. These indivividual links should include both the respective code of the enumerator and the respondent. These are collected in two survey questions and saved as embedded data.

As explained here https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/passing-information-through-query-strings/#QEED, I created the following JSON code to create my URL parameter:

{ "CodeEnumerator": "${e://Field/CodeEnumerator}", "CodeClient": "${e://Field/CodeClient}" }

Note that in contrast to the example provided by the support page, I use piped in information.

 

In the next step, I encode the JSOn code and add it to the survey string as follows:

${l://SurveyURL}&Q_EED=eyAiQ29kZUNvYWNoIjogIiR7ZTovL0ZpZWxkL0NvZGVDb2FjaH0iLCAiQ29kZUtsaWVudCI6ICR7ZTovL0ZpZWxkL0NvZGVLbGllbnR9fQ==

 

However, for some reason, the link only passes the information of “CodeEnumerator” and not the information of “CodeClient”.

 

So my question is: How can I pass two pieces of encoded information from a baseline survey to a follow-up survey using email distributions and individual links?

 

If this is your JSON

{ "CodeEnumerator": "${e://Field/CodeEnumerator}", "CodeClient": "${e://Field/CodeClient}" }

Your base64 would be something like this

eyJDb2RlRW51bWVyYXRvciI6ICIke2U6Ly9GaWVsZC9Db2RlRW51bWVyYXRvcn0iLCJDb2RlQ2xpZW50IjogIiR7ZTovL0ZpZWxkL0NvZGVDbGllbnR9In0K

It seems the encoding is different.


If this is your JSON

Your base64 would be something like this

eyJDb2RlRW51bWVyYXRvciI6ICIke2U6Ly9GaWVsZC9Db2RlRW51bWVyYXRvcn0iLCJDb2RlQ2xpZW50IjogIiR7ZTovL0ZpZWxkL0NvZGVDbGllbnR9In0K

It seems the encoding is different.

 

Thank you for your answer! Indeed, my original JSON (with German names for fields) is different:

{ "CodeCoach": "${e://Field/CodeCoach}", "CodeKlient": "${e://Field/CodeKlient}" }

and the corresponding base64 is: eyAiQ29kZUNvYWNoIjogIiR7ZTovL0ZpZWxkL0NvZGVDb2FjaH0iLCAiQ29kZUtsaWVudCI6ICIke2U6Ly9GaWVsZC9Db2RlS2xpZW50fSIgfQ==

 

Maybe the settings for the encoding were not correct?

I use this website https://www.base64encode.org/ and use UTF-8 as destination character set and LF (Unix) as destination newline separator


Leave a Reply