Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subscriptions not transferred over #10

Open
Lanshenberger opened this issue Jun 10, 2020 · 0 comments
Open

Subscriptions not transferred over #10

Lanshenberger opened this issue Jun 10, 2020 · 0 comments

Comments

@Lanshenberger
Copy link

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);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant