Base64 encode btoa() failed to call in Code module | XM Community
Skip to main content

Hi community,

 

I am following this article to encode the query string array to base64 string.

https://www.qualtrics.com/support/survey-platform/survey-module/survey-flow/standard-elements/passing-information-through-query-strings/#QEED

 

However, I am not encoding the query string in external system, the encode is done with Qualtrics workflow task, using Code workflow, when I test the JavaScript code, it works fine, but when the code run with the entire workflow, it failed. The message is “btoa is not defined”.

 

Is any restriction to call btoa function to encode base64 string on Qualtrics workflow code? Please advise, thank you.

 

Use Code (JS) to construct the survey link:

 

In failed to run in Workflow.

 

Be the first to reply!

Leave a Reply