<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Subscriptions API does not work? in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Subscriptions-API-does-not-work/m-p/556163#M8696</link>
    <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been struggling with the PBIRS API these days to move the whole content from one to another server. All goes fine until I faced some kind of inconsistences in the /subscriptions endpoint with post method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sending the proper payload as body, as is it defined on&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis-docs/microsoft-rs/PBIRS/2.0#/Subscriptions/AddSubscription" target="_blank"&gt;https://app.swaggerhub.com/apis-docs/microsoft-rs/PBIRS/2.0#/Subscriptions/AddSubscription&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fall back to the SOAP endpoints and, after review it, I found that the new Rest API is missing few important data to be able to create a new subscription. LocalizedDeliveryExtensionName is JUST a string, and nothing else. However, I think there are more details to add define the deliveryExtension settings (account, file share, etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For records, here is a sample of the payload I'm sending to the server:&lt;/P&gt;&lt;PRE&gt;{
    "Id":  "b872df6e-4147-403b-a343-c1481329828b",
    "Owner":  "DEMOS2016\\SolidQMaster",
    "IsDataDriven":  false,
    "Description":  "TestSubscription99",
    "Report":  "/TestingUploads/otherFolder/subfolder/performance_dashboard_main",
    "IsActive":  true,
    "EventType":  "TimedSubscription",
    "Schedule":  {
                     "ScheduleID":  null,
                     "Definition":  {
                                        "StartDateTime":  "2018-10-29T02:00:00Z",
                                        "EndDate":  "0001-01-01T00:00:00Z",
                                        "EndDateSpecified":  false,
                                        "Recurrence":  {
                                                           "MinuteRecurrence":  null,
                                                           "DailyRecurrence":  {
                                                                                   "DaysInterval":  1
                                                                               },
                                                           "WeeklyRecurrence":  null,
                                                           "MonthlyRecurrence":  null,
                                                           "MonthlyDOWRecurrence":  null
                                                       }
                                    }
                 },
    "ScheduleDescription":  "At 2:00 AM every day, starting 10/29/2018",
    "LastRunTime":  "2018-10-29T11:28:39.953Z",
    "LastStatus":  "The file \"performance_dashboard_main.docx\" has been saved to the \"\\\\sql2017box01\\Delivery\" file share.",
    "DataQuery":  null,
    "ExtensionSettings":  null,
    "DeliveryExtension":  "Report Server FileShare",
    "LocalizedDeliveryExtensionName":  "Windows File Share",
    "ModifiedBy":  "DEMOS2016\\SolidQMaster",
    "ModifiedDate":  "2018-10-29T12:55:37.57Z",
    "ParameterValues":  [
                            {
                                "Name":  "Server",
                                "Value":  "localhost",
                                "IsValueFieldReference":  false
                            }
                        ]
}&lt;/PRE&gt;&lt;P&gt;And here the powershell command&amp;nbsp;posting the request on the server:&lt;/P&gt;&lt;PRE&gt;Invoke-restmethod -Uri "$DestServer/api/v2.0/Subscriptions"  -body $Body `
                    -ContentType 'application/json' `
                    -UseDefaultCredentials -Method Post  -Verbose&lt;/PRE&gt;&lt;P&gt;Any clue would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks beforehand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Víctor M.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Oct 2018 10:06:40 GMT</pubDate>
    <dc:creator>VictorM</dc:creator>
    <dc:date>2018-10-30T10:06:40Z</dc:date>
    <item>
      <title>Subscriptions API does not work?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Subscriptions-API-does-not-work/m-p/556163#M8696</link>
      <description>&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've been struggling with the PBIRS API these days to move the whole content from one to another server. All goes fine until I faced some kind of inconsistences in the /subscriptions endpoint with post method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sending the proper payload as body, as is it defined on&amp;nbsp;&lt;A href="https://app.swaggerhub.com/apis-docs/microsoft-rs/PBIRS/2.0#/Subscriptions/AddSubscription" target="_blank"&gt;https://app.swaggerhub.com/apis-docs/microsoft-rs/PBIRS/2.0#/Subscriptions/AddSubscription&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I fall back to the SOAP endpoints and, after review it, I found that the new Rest API is missing few important data to be able to create a new subscription. LocalizedDeliveryExtensionName is JUST a string, and nothing else. However, I think there are more details to add define the deliveryExtension settings (account, file share, etc..)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For records, here is a sample of the payload I'm sending to the server:&lt;/P&gt;&lt;PRE&gt;{
    "Id":  "b872df6e-4147-403b-a343-c1481329828b",
    "Owner":  "DEMOS2016\\SolidQMaster",
    "IsDataDriven":  false,
    "Description":  "TestSubscription99",
    "Report":  "/TestingUploads/otherFolder/subfolder/performance_dashboard_main",
    "IsActive":  true,
    "EventType":  "TimedSubscription",
    "Schedule":  {
                     "ScheduleID":  null,
                     "Definition":  {
                                        "StartDateTime":  "2018-10-29T02:00:00Z",
                                        "EndDate":  "0001-01-01T00:00:00Z",
                                        "EndDateSpecified":  false,
                                        "Recurrence":  {
                                                           "MinuteRecurrence":  null,
                                                           "DailyRecurrence":  {
                                                                                   "DaysInterval":  1
                                                                               },
                                                           "WeeklyRecurrence":  null,
                                                           "MonthlyRecurrence":  null,
                                                           "MonthlyDOWRecurrence":  null
                                                       }
                                    }
                 },
    "ScheduleDescription":  "At 2:00 AM every day, starting 10/29/2018",
    "LastRunTime":  "2018-10-29T11:28:39.953Z",
    "LastStatus":  "The file \"performance_dashboard_main.docx\" has been saved to the \"\\\\sql2017box01\\Delivery\" file share.",
    "DataQuery":  null,
    "ExtensionSettings":  null,
    "DeliveryExtension":  "Report Server FileShare",
    "LocalizedDeliveryExtensionName":  "Windows File Share",
    "ModifiedBy":  "DEMOS2016\\SolidQMaster",
    "ModifiedDate":  "2018-10-29T12:55:37.57Z",
    "ParameterValues":  [
                            {
                                "Name":  "Server",
                                "Value":  "localhost",
                                "IsValueFieldReference":  false
                            }
                        ]
}&lt;/PRE&gt;&lt;P&gt;And here the powershell command&amp;nbsp;posting the request on the server:&lt;/P&gt;&lt;PRE&gt;Invoke-restmethod -Uri "$DestServer/api/v2.0/Subscriptions"  -body $Body `
                    -ContentType 'application/json' `
                    -UseDefaultCredentials -Method Post  -Verbose&lt;/PRE&gt;&lt;P&gt;Any clue would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks beforehand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Víctor M.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 10:06:40 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Subscriptions-API-does-not-work/m-p/556163#M8696</guid>
      <dc:creator>VictorM</dc:creator>
      <dc:date>2018-10-30T10:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Subscriptions API does not work?</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Subscriptions-API-does-not-work/m-p/3415400#M30978</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ID is the auto-generated GUID, should we really pass the ID?&lt;BR /&gt;I m also facinng the same issue. does anyone have any ideas?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;MK&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2023 10:20:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Subscriptions-API-does-not-work/m-p/3415400#M30978</guid>
      <dc:creator>BI_gsmkannan</dc:creator>
      <dc:date>2023-09-05T10:20:12Z</dc:date>
    </item>
  </channel>
</rss>

