How do I return a JSON response package to a REST API WebReport call
I have an authenticated REST call successfully hitting a WebReport in a CS 16.2.11 install. The results of the WR with a LR source are currently returning as html in the response data. My destination on the WR is "browser" with a mime-type of "text/html". To simply display the page I would have something like this in the WR row data…
Name: [LL_REPTAG_1 /]
LinkID1: [LL_REPTAG_2 /]
LinkID2: [LL_REPTAG_3 /]
Assuming I want the above results to actually return as JSON response data, how would I format the actual WR (including any subtags) ? Also, what would the destination and mime-type settings need to be?
Best Answer
-
Unless I am mistaken when you create a WR there is a template called WebReport CS16+ UI NodesTableReport template - Sample Template if you look at the example on online help you will see things like [// Return JSON data compatible with the V2 /nodes RestAPI
[LL_WEBREPORT_INSERTJSON @NODESTABLEFIELDS /]other ways to help you in your quest
I would post this in the WR-specific forum, however, any WR can be called a RESTAPI endpoint . There are many toJSON functions in WR
This is the WR-specific forum
This is where I showed you the screencap
0
Answers
-
Unless I am mistaken when you create a WR there is a template called WebReport CS16+ UI NodesTableReport template - Sample Template if you look at the example on online help you will see things like [// Return JSON data compatible with the V2 /nodes RestAPI
[LL_WEBREPORT_INSERTJSON @NODESTABLEFIELDS /]other ways to help you in your quest
I would post this in the WR-specific forum, however, any WR can be called a RESTAPI endpoint . There are many toJSON functions in WR
This is the WR-specific forum
This is where I showed you the screencap
0
Categories
- All Categories
- 111 Developer Announcements
- 49 Articles
- 103 General Questions
- 123 IM Services
- 40 OpenText Hackathon
- 31 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 897 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 123 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 1 XM Fax