Highlighted
Four Stars

tResponse Ok and Not Ok

Hello,

image.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

 

3 REPLIES
Forteen Stars

Re: tResponse Ok and Not Ok

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

Rilhia Solutions
Four Stars

Re: tResponse Ok and Not Ok

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

 

image.pngThank you

Forteen Stars

Re: tResponse Ok and Not Ok

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. 

Rilhia Solutions