Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

[resolved] Dynamic REST URL with appended variable

My issue is with the URL path concerning the tREST component.
I want to be able to append a variable to the URL path which changes each time.
For example, I have a database with multiple rows and need to pass the id of the row as the last parameter in the url.
something along these lines: "http://localhost:8080/People-api/Person/"+ (Integer)globalMap.get(\"person_id\")
Is this possible?? Each record has a different person_id value so this URL needs to change with each call. Not sure how to resolve a value from a Java variable in the URL, nor if the escape character (\) would work properly there.

Thanks
Labels (4)
1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I was able to make it work, simply by doing:
"http://localhost:8080/People-api/Person/"+ ((Integer)globalMap.get("person_id"))
Sometimes talend is very particular so its a lot of trial and error.

View solution in original post

1 Reply
Anonymous
Not applicable
Author

I was able to make it work, simply by doing:
"http://localhost:8080/People-api/Person/"+ ((Integer)globalMap.get("person_id"))
Sometimes talend is very particular so its a lot of trial and error.