Passing embedded data as web service parameters | XM Community
Skip to main content
Solved

Passing embedded data as web service parameters

  • July 29, 2025
  • 2 replies
  • 36 views

venturatds
Forum|alt.badge.img+1

Hello! 

 

I am trying to pass an embedded data value as a parameter in a webservice. However, instead of embedding the value of the data (as a random number), the webservice call gets the textual value of the embedded data. For example, if I set a embedded data called “random_id”, when I set the embedded data in a query parameter as `${e://Field/random_id}`, I get the full “${e://Field/random_id}” as the value for the parameter on the webservice/API call. See the picture below: 

 

Best answer by TomG

That’s how the web service Test button works. It doesn’t replace piped fields with their values, it just passes the piping string.  The correct value will be resolved and sent when a actual response occurs.

2 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6084 replies
  • Answer
  • July 29, 2025

That’s how the web service Test button works. It doesn’t replace piped fields with their values, it just passes the piping string.  The correct value will be resolved and sent when a actual response occurs.


venturatds
Forum|alt.badge.img+1
  • Author
  • 2 replies
  • July 29, 2025

Thank you! I can see now it works on the preview as well!