Gen3 web service samples for creating users, projects or reports?

  • 1
  • Question
  • Updated 3 years ago
  • Answered
Is there any example code (preferably in C#) or documentation for creating users, projects or reports using the Gen3 web service?

Request formats for *getting* data and calling SOAP methods is fairly self-explanatory using the service helpers, and Visual Studio's Add Service Reference will create C# classes from WSDL, however when I tried to create a report using ReportService1.PutReport all I got back was "The creator of this fault did not specify a Reason."

Using https://na8.replicon.com/<mycompany>/services/ReportService1.svc/help/test/PutReport also yielded "type": "InvalidReportTargetParameterError1", but that doesn't explain much since "target" is an optional parameter and I'm trying to create a new report.

To create a new object, do I also need to use CreateNewDraft or other methods, or is there a better way to programmatically create a report in Gen3?

Thanks,
Dean
Photo of deanwiles

deanwiles

  • 1 Post
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Sayantan Choudhury

Sayantan Choudhury, Tier 3 Cloud Operations Engineer

  • 7 Posts
  • 1 Reply Like
Hi Dean,

You will need to create a draft object first, make your modifications to the draft and then publish the draft to successfully create a Report. Please find the detailed steps as follows:

1. Use the following service to create a Report Draft
ReportService1.svc/CreateNewDraft

2. Use the following service to apply a Report Template to the Draft.
ReportService1.svc/ApplyTemplate

3. Use the following service to update the name of the Report Draft.
ReportService1.svc/UpdateName

4. Use the following service to put columns and grouping configuration to the draft.
ReportService1.svc/PutReportColumnAndGroupingConfiguration
While using this Service you would need the Column URIs, which can be pulled up using the following service:
ReportService1.svc/GetColumnarReportTemplateDetails

5. Finally, save your changes by publishing the draft using the following service:
ReportService1.svc/PublishDraft

Let us know in case you have any further questions.

Regards,

Sayantan Choudhury