Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello ,
So , im trying to a dynamic value to a tREST body query : (here is a screen shot of my trest configuration) :
to Explain more im getting an error as below :
When i use static values it works .
my job is as such :
I think that i have a syntax error in the query .
Hope this problem would be solved .
Thanks again .
You need to use strings concatenation like this:
"{\"query\":\" blablabla product_simple_ids : [" + ((List)globalMap.get("myList")).get(i) + "]) blabla...
Here is my new query :
product_simple_ids: [ \\\"+((List)globalMap.get(\"myList\")).get(i)+\\\" ])
Is there a possible way to pass dynamic global variables and support the double quotes (") : such example :
product_simple_ids: [ \\\"+((List)globalMap.get(\"myList\")).get(i)+\\\" ])
Im still blocked and needs some help please .
Thanks in advance .
Thanks for your helpful advice ! I get it now but i have an other error . as shown below :
In the first line am printing my global variable OK but it seems like it is treated separtrly (in blocs ) some how as in the screenshot .
I don't realy get the error !
Any idea ?
And for the first element treated im getting this :
marketplace_product_id to be treated ==3ME-K110032032 .----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+----------. | tLogRow_1 | |=---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------=| |Body |ERROR_CODE| |=---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------=| |{ "errors": [ { "message": "Syntax Error: Invalid number, expected digit but got: \"K\".", "locations": [ { "line": 1, "column": 130 } ] } ] }|null |