<?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 Re: API Export with captured bookmark state only has current page filters in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3281143#M43055</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/574313"&gt;@benw101010&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share how the request to the API looks like?&lt;/P&gt;&lt;P&gt;Do you just pass the captured bookmark state in the defaultBookmark parameter?&lt;/P&gt;</description>
    <pubDate>Tue, 13 Jun 2023 07:57:00 GMT</pubDate>
    <dc:creator>AmosHersch</dc:creator>
    <dc:date>2023-06-13T07:57:00Z</dc:date>
    <item>
      <title>API Export with captured bookmark state only has current page filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3279989#M43045</link>
      <description>&lt;P&gt;When I pass the bookmark state to request PowerBIClient.Reports.ExportToFileInGroup, only the filters / slicers for the current page are applied to resulting export (powerpoint).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In javascript, I'm capturing the bookmark from an embedded PBI report...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.report.bookmarksManager.capture({&lt;BR /&gt;allPages: true,&lt;BR /&gt;personalizeVisuals: true&lt;BR /&gt;})&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise if there is a way to get filters from all pages in an export report.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jun 2023 16:33:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3279989#M43045</guid>
      <dc:creator>benw101010</dc:creator>
      <dc:date>2023-06-12T16:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Export with captured bookmark state only has current page filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3281143#M43055</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/574313"&gt;@benw101010&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you please share how the request to the API looks like?&lt;/P&gt;&lt;P&gt;Do you just pass the captured bookmark state in the defaultBookmark parameter?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 07:57:00 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3281143#M43055</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-06-13T07:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: API Export with captured bookmark state only has current page filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3281827#M43062</link>
      <description>&lt;P&gt;yes defaultBookmark.&amp;nbsp; c# server side code...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;var powerBIReportExportConfiguration = new PowerBIReportExportConfiguration&lt;BR /&gt;{&lt;BR /&gt;Settings = new ExportReportSettings&lt;BR /&gt;{&lt;BR /&gt;Locale = "en-us",&lt;BR /&gt;},&lt;BR /&gt;// Note that page names differ from the page display names&lt;BR /&gt;// To get the page names use the GetPages REST API&lt;BR /&gt;Pages = pageNames?.Select(pn =&amp;gt; new ExportReportPage(pn)).ToList(),&lt;BR /&gt;&lt;STRONG&gt;DefaultBookmark = new PageBookmark(null, bookmark.state),&lt;/STRONG&gt;&lt;BR /&gt;Identities = identities&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;var exportRequest = new ExportReportRequest&lt;BR /&gt;{&lt;BR /&gt;Format = format,&lt;BR /&gt;PowerBIReportConfiguration = powerBIReportExportConfiguration,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;// The 'Client' object is an instance of the Power BI .NET SDK&lt;BR /&gt;var export = await client.Reports.ExportToFileInGroupAsync(groupId, reportId, exportRequest);&lt;BR /&gt;// Save the export ID, you'll need it for polling and getting the exported file&lt;/P&gt;&lt;P&gt;var result = new ExportRequest()&lt;BR /&gt;{&lt;BR /&gt;ExportId = export.Id,&lt;BR /&gt;ReportName = report.Name,&lt;BR /&gt;ReportId = reportId,&lt;BR /&gt;GroupId = groupId&lt;BR /&gt;};&lt;BR /&gt;return result;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 13:49:36 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3281827#M43062</guid>
      <dc:creator>benw101010</dc:creator>
      <dc:date>2023-06-13T13:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: API Export with captured bookmark state only has current page filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3282328#M43064</link>
      <description>&lt;P&gt;Not sure why it's not working. Might be a bug on Power BI side but requires investigation.&lt;/P&gt;&lt;P&gt;Since you are already using Power BI JS to capture the bookmark I would try to apply the captured bookmark state and see if it works or not.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 19:15:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3282328#M43064</guid>
      <dc:creator>AmosHersch</dc:creator>
      <dc:date>2023-06-13T19:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: API Export with captured bookmark state only has current page filters</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3284047#M43079</link>
      <description>&lt;P&gt;I found my issue - I needed to update powerbi.js.&amp;nbsp; Exported pdf now has page level filters from captured bookmark.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/microsoft/PowerBI-JavaScript/tree/master/dist" target="_blank"&gt;https://github.com/microsoft/PowerBI-JavaScript/tree/master/dist&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jun 2023 15:16:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-Export-with-captured-bookmark-state-only-has-current-page/m-p/3284047#M43079</guid>
      <dc:creator>benw101010</dc:creator>
      <dc:date>2023-06-14T15:16:28Z</dc:date>
    </item>
  </channel>
</rss>

