Skip to content

Subscriptions not transferred over #10

Description

@Lanshenberger

The problem I was having related to transferring subscriptions. When I sync a report to another server, the subscription is not transferred over. The documentation for ReportingService2005.ListSubscriptions states that "If valid values are supplied for both the Owner parameter and Report parameter, the method returns all subscriptions for the specified report that the specified user created and has permission to view." This becomes an issue when you want to transfer all subscriptions that the user can see. However, the documentation also states that "If only the Report parameter is submitted, the method returns all subscriptions for all users of the specified report that the current user has permission to view."

So, to fix this, I changed (in ReportSync.cs):
var subscriptions = _sourceServicesMgmt.ReportingService.ListSubscriptions(itemPath, tbSourceUser.Text);
to
var subscriptions = _sourceServicesMgmt.ReportingService.ListSubscriptions(itemPath, null);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions