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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tResponse Ok and Not Ok

Hello,

0683p000009LwhG.png

 trestrequest is in json format, I want in my output to receive ok or not (if there are errors) in json format when I call the REST in browser with other information.

 

Thank you

Regards

 

Labels (2)
3 Replies
Anonymous
Not applicable
Author

Set the "Return Body Type" as String in your tRESTResponse. It defaults to Document. Then you can send your JSON String back.

Anonymous
Not applicable
Author

i changed the Body of trestresponse to sting and i don't receive the OK or not in my browser:

 

0683p000009LwUG.pngThank you

Anonymous
Not applicable
Author

You will have to add that to your JSON. When you set the "Return Status Code" in the tRESTResponse, that is not intended to be displayed. You can see it using your developer settings of the browser you are using (here is an example using IE https://msdn.microsoft.com/en-us/library/gg130952(v=vs.85).aspx).

You will only see what your job outputs in the Document or String in the browser window.