We have a LR to find the 3 project role for a single project in the KUAF (in some case calulating of the group Ids based on the Project ID does nor work)
We are trying to call the method runReport from the DocumentManagement class, but for some reason the call fails.
The parameter 'projectId' is of type Number.
Here it is a snippet of the call.
List<DataValue> inputs = new ArrayList<>();
DataValue type = new DataValue();
type.setKey("InputType");
type.setDescription("Number");
DataValue label = new DataValue();
label.setKey("Label");
label.setDescription("inputlabel1");
DataValue value = new DataValue();
value.setKey("Value");
value.setDescription(String.valueOf(projectId));
inputs.add(type);
inputs.add(label);
inputs.add(value);
ReportResult result = docManagement.runReport(reportId, inputs);
Could anyone help with some examples of running a report with CWS?
From Thread logs:
06/06/2019 15:30:35 INFO Service error occurred
06/06/2019 15:30:35 INFO Error Code: DocMan.InvalidReportInputs
06/06/2019 15:30:35 INFO Error Message: Expected report input is missing
06/06/2019 15:30:35 DEBUG GetGlobal - No such global: ApiLog
in the Web-UI the report works fine.
Thanks.