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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
EGuarato1648206044
Contributor III
Contributor III

tRestClient - how to put variable into Query Parameters string

Hi,

i'm trying to call a POST request.

I'm putting the field in the query parameters of the module and it works with a string. How can I insert in that string the variable of the previous components? I need to put the variable ((String)globalMap.get("row5.id")) instead of 2022_04_11.pdf

0695b00000QD5k9AAD.png 

I've already tried to break the string by inserting "+((String)globalMap.get("row5.nomeprogetto"))+" but it didn't work.

Labels (3)
3 Replies
gjeremy1617088143

Hi, could you post screenshot of your job ? I'd like to know where row5 come from.

Anonymous
Not applicable

Hi

Add a global variable in a string like this:

"bababa"+((String)globalMap.get("row5.nomeprogetto"))+"bababa"

For debugging, build the element value on a tJavaRow before it is used and make sure the value is correct, eg:

...row5--tJavaRow--tFlowToIterate--tRestClient

on tJavaRow:

context.element= "bababa"+((String)globalMap.get("row5.nomeprogetto"))+"bababa" ;

System.out.println(context.element)

 

on tRestClient, use context.element as element value.

 

Regards

Shong

EGuarato1648206044
Contributor III
Contributor III
Author

I solved by constructing the entire string inside a tMap component.