Skip to content

Commit d8370d5

Browse files
committed
Update Import-RsSubscriptionXml.ps1
Corrected the example of the Import-RsSubscriptionXml function to show Copy-RsSubscription function as the target of the pipeline. The Set-RsSubscription function no longer supports this functionality.
1 parent 5ddfa89 commit d8370d5

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

ReportingServicesTools/Functions/CatalogItems/Import-RsSubscriptionXml.ps1

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,25 @@ function Import-RsSubscriptionXml {
3737
and output a PowerShell object with the result.
3838
3939
.EXAMPLE
40-
Import-RsSubscriptionXml .\MySubscriptions.xml | Set-RsSubscription -Path /Example/Report
40+
Import-RsSubscriptionXml .\MySubscriptions.xml | Copy-RsSubscription -RsItem /Example/Report
41+
42+
Description
43+
-----------
44+
This command will import all the subscriptions contained in .\MySubscriptions.xml, recreate any SRSS specific properties
45+
and pipe the results to Copy-RsSubscription which will add them to the /Example/Report report.
46+
NOTE: You will need to supply the correct path for the -ReportServerUri parameter to both the Import-RsSubscriptionXml
47+
& Copy-RsSubscription functions. It has been omitted from this example for brevity.
48+
49+
.EXAMPLE
50+
Import-RsSubscriptionXml .\MySubscriptions.xml |
51+
Out-GridView -PassThru |
52+
Copy-RsSubscription -RsItem /Example/Report
4153
4254
Description
4355
-----------
4456
This command will import the subscriptions contained in .\MySubscriptions.xml, recreate any SRSS specific properties
45-
and pipe the results to Set-RsSubscription which will add them to the /Example/Report report.
57+
and output a PowerShell object with the result. The Out-GridView cmdlet allows you to examine and optionally filter the
58+
subscriptions from the .XML file, before adding them to the report via the Copy-RsSubscription function.
4659
#>
4760

4861
[cmdletbinding()]

0 commit comments

Comments
 (0)