WebService inside Service JSON | XM Community
Skip to main content
Question

WebService inside Service JSON


Forum|alt.badge.img+1

I am try to integrate Microsfts Azure Translator as a WebService into my survey to translate survey responses in real-time. Unfortunately, the request composition in Azure requires a JSON list, which is not possible inside the webservice of Qualtrics as it does not allow for free text. Is there a way around it? I got it working as a normal Web Service Task inside Qualtrics.

3 replies

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 22, 2024

You can try to call the API from a hidden question JS using jQuery request.


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 2 replies
  • January 22, 2024
Shashi wrote:

You can try to call the API from a hidden question JS using jQuery request.

Thanks for the answer, this sounds workable! Can I then use the response body as embedded data in a later part of the survey?


Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+32
  • Level 8 ●●●●●●●●
  • 633 replies
  • January 22, 2024
dylanpa22 wrote:
Shashi wrote:

You can try to call the API from a hidden question JS using jQuery request.

Thanks for the answer, this sounds workable! Can I then use the response body as embedded data in a later part of the survey?

Yes we can use Qualtrics.SurveyEngine.setEmbeddedData("<Embedded Data Name>", "<Value>"); function to store the data in an embedded data.


Leave a Reply