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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Sindhura1
Contributor
Contributor

Input arrays to trestapi

Hi,

I need to pass arrays though context variables in http body of trest component.

Example as below:

Context.a=b,c,d

input in http body:

{[

\"param\":\""+ context.a+\"]}

Output should be as:

​param: {["b","c","d"]}

Labels (4)
2 Replies
XJ_1630
Contributor III
Contributor III

try using the tWriteJson to create your body

and, use tMap to send this as 'string' to tRestClient

 

the tRestClient accepts 'Document' (as xml) and 'string' (as json/text)

 

 

manodwhb
Champion II
Champion II

@Sindhura V S​ , You need to pass below way.

 

"{[\"param\":\""+ context.a+"\"]}"

 

Thanks,

Manohar