Hi all! Pardon me if this question is basic, but I can't seem to find the answer.
Is it possible to call or run a WebReport via WebServices? If so, is there a snippet available?
Many thanks!
Ben
Hi Ben,
You can make use of the runReport() function from the docman service. As input parameters, you simply provide the DataID of the report and an array of inputs for the report (if any exist).
There is a little code snippet posted at the link below from Hugh Ferguson:https://knowledge.opentext.com/knowledge/cs.dll/open/68823458
Regards,
Andre Roy
Possible to Call/Run WebReports Through WebServices? Posted byShapiro, BenOn 10/17/2017 10:51 AM Hi all! Pardon me if this question is basic, but I can't seem to find the answer. Is it possible to call or run a WebReport via WebServices? If so, is there a snippet available? Many thanks!Ben[To post a comment, use the normal reply function]Forum:Content Web Services ForumContent Server:Knowledge Center CS16
I was a little surprised to find out that it doesn’t appear to be possible. I could’ve sworn the regular LiveReport call RunReport would do the trick, but I just tried out my test snippet and it fails complaining that it’s not a LiveReport node. When I peeked into the WR OSpace there’s no ServiceNode there so that would explain it.
Looks like your best bets are to programmatically call it either via request handler directly (i.e. http://yourserver.com/cs.exe?func=runreport&etc...), or probably easiest via CS REST API. Swagger docs for the 16.2 REST calls can be found here (you can use the breadcrumb trail to go back to prior versions if needed – getting basic output is available back to 10.5):
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=67789539&objAction=browse&viewType=1
Hope that helps.
AK
From: eLink Entry: Content Web Services Forum [mailto:otdncontentwebservices971forum@elinkkc.opentext.com]Sent: Tuesday, October 17, 2017 10:58 AMTo: eLink Recipient <devnull@elinkkc.opentext.com>Subject: Possible to Call/Run WebReports Through WebServices?
Possible to Call/Run WebReports Through WebServices?
Posted by Shapiro, Ben On 10/17/2017 10:51 AM
[To post a comment, use the normal reply function]
Forum:
Content Web Services Forum
Content Server:
Knowledge Center CS16