Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MCANTAL1639145723
Contributor
Contributor

tRestClient post JSON file in body

Hello,

I have to create a json file for my products ans then I need to call WS with the post method and OAuth2 Bearer authentification for each product.

So I used tWriteJSONField to create the json files and then I need a tRestClient but how can I send the json file ? with a TMAP or a tXMLMap ?

Thanks for your help.

Labels (2)
1 Reply
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hi @M CANTAL​ 

 

Since you used tWriteJSONField to create your json tree, you can just use a tMap to map tWriteJSONField output column to tRESClient string column.

 

Another option would be using tXMLMap instead of tWriteJSONField to create the tree nodes and map it to tRESTClient body column.