Hello,
We've added a new screen that displays the UserReportEx DAC in a table and created an action to move reports (with a specific checkbox selected) to another tenant on the same instance. For example, reports SO641010 and SO642000 are currently in Tenant A, and we want to move them to Tenant B.
We discovered that the Report Designer uses the ServiceGate API, accessible under /api/servicegate.asmx
for any instance, but we’re struggling to make it work.
Here’s the code we currently have https://pastebin.com/sfd6AYdp, but it always returns the following error:
Report Response: System.InvalidOperationException: Not authenticated. at PX.Api.WebServiceBase.VerifyLogin() in C:\build\code_repo\NetTools\PX.Data\Api\Legacy\AbstractServiceGate.cs:line 572 at PX.Api.WebServiceBase.ReportSave(String name, String xml) in C:\build\code_repo\NetTools\PX.Data\Api\Legacy\AbstractServiceGate.cs:line 241 Status code: InternalServerError
Does anyone know how to resolve this? We've gone through several iterations of the code, but it still doesn’t seem to work and the API documentation under /api/servicegate.asmx
does not seem to be very helpful. We do login successfull, it always seems to error at using ReportSave (or ReportSaveEx)
We do have the ReportDesigner Role on both Tenants.