Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
EranRaz
Contributor
Contributor

Acquiring data dynamically  from a REST webservice

Hi, 

The webservice expecting a JSON with parameters in the body

But I need the body to be dynamically changed according to the user selection, 

something like the pic attached  (the connector works when the  body is hardcoded)

EranRaz_0-1609852292743.png

will appreciate any help or guidance on that

thanks

Eran

 

Labels (1)
10 Replies
stevedark
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi @EranRaz 

Unfortunately your images don't seem to have come through.

@chrisbrain's solution of escaping double quotes by doubling them up looks like it will fix a number of your woes.

With regards to the connection, you will need to have a connection that is successfully created. Your best bet may be to create a connection which points to a dummy location (such as https://jsonplaceholder.typicode.com/posts) so that it exists correctly. You can then connect to that at the start of the script.

To insert the correct endpoint you can use another entry in the WITH CONNECTION section to point the URL to the correct place.

Anything you set using WITH CONNECTION will override anything that is in the connection previously.

Hope that helps.

Steve