How to send Properly Evaluated Embedded Data to an API? | XM Community
Skip to main content
Solved

How to send Properly Evaluated Embedded Data to an API?

  • April 5, 2022
  • 3 replies
  • 80 views

thampson
Forum|alt.badge.img+1

Hello,
Hoping someone has run into this problem.
I need to pass multiple embedded data variables in a JSON format to a 3rd party vendor, but I can't seem to get the embedded data to evaluated properly. I keep getting literal values passed to the API.
My current format looks like this:

[ {"StratificationID" : 1, "Level" : ${e://Field/StrataAge} ]

Anyone know how to get this to work?
Thanks.

Best answer by thampson

I will try this out, thanks!

3 replies

Aanurag_QC
QPN Level 5 ●●●●●
Forum|alt.badge.img+31

 "SRC_COUNTRY": "${e://Field/SRC_COUNTRY}" -- Add double quotes around the embedded value that you're trying to pass


thampson
Forum|alt.badge.img+1
  • Author
  • Answer
  • April 7, 2022

I will try this out, thanks!


thampson
Forum|alt.badge.img+1
  • Author
  • April 7, 2022

Hello Aanurag,
You certainly do deserve the title of Qualtrics "guru". It worked exactly the way I needed. And I never would have guessed that quotes would evaluate a variable!
Thanks!
Todd