<?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: PowerBi - Rest API - Reports - Export To File using bookmarks in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4416671#M59562</link>
    <description>&lt;P&gt;Have you tried the API call in the sandbox? Make sure your payload has the right format.&lt;/P&gt;</description>
    <pubDate>Wed, 19 Feb 2025 01:24:02 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-02-19T01:24:02Z</dc:date>
    <item>
      <title>PowerBi - Rest API - Reports - Export To File using bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4415601#M59550</link>
      <description>&lt;P&gt;Dear community,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I am desperately trying to export a Power BI file, which is located in a Fabric environment, to a PDF using the REST API. The PBIX file contains a single page. This page has five bookmarks applied to it, each filtering the data based on a specific country.&lt;/P&gt;&lt;P&gt;Our goal is to reference each of these bookmarks and export them individually as PDFs, all based on the same report page. This works, for example, in Power Automate when I loop through the bookmark names extracted from the URL after publishing.&lt;/P&gt;&lt;P&gt;However, when we try the same approach in a Python notebook within Fabric, only the first page is exported, even if we explicitly specify a different bookmark.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Below you can find relevant code:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# Define the payload (body) for the export request&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;payload = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"format"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"PDF"&lt;/SPAN&gt;&lt;SPAN&gt;, &amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"powerBIReportConfiguration"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"Bookmarks"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: bookmark_guid&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2025 10:06:45 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4415601#M59550</guid>
      <dc:creator>ResAPIToTheMoon</dc:creator>
      <dc:date>2025-02-18T10:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBi - Rest API - Reports - Export To File using bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4416671#M59562</link>
      <description>&lt;P&gt;Have you tried the API call in the sandbox? Make sure your payload has the right format.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Feb 2025 01:24:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4416671#M59562</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-19T01:24:02Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBi - Rest API - Reports - Export To File using bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4417278#M59569</link>
      <description>&lt;P&gt;The payload was not correct. This one works:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; payload = {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"format"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"PDF"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"powerBIReportConfiguration"&lt;/SPAN&gt;&lt;SPAN&gt;: {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"defaultBookmark"&lt;/SPAN&gt;&lt;SPAN&gt;: { &lt;/SPAN&gt;&lt;SPAN&gt;"name"&lt;/SPAN&gt;&lt;SPAN&gt;: bookmark_guid }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; }&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Feb 2025 08:16:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4417278#M59569</guid>
      <dc:creator>ResAPIToTheMoon</dc:creator>
      <dc:date>2025-02-19T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: PowerBi - Rest API - Reports - Export To File using bookmarks</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4418725#M59587</link>
      <description>&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&lt;SPAN&gt;HI,&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/933856"&gt;@ResAPIToTheMoon&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;We are very pleased to hear that the issue has been resolved. Thank you for sharing the solution with us. If you are willing, you might consider accepting this solution, as it can also help other community members facing the same issue find a solution more quickly.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="vlinyulumsft_0-1740020287471.png" style="width: 400px;"&gt;&lt;img src="https://community.fabric.microsoft.com/t5/image/serverpage/image-id/1241408i510DF60152489D6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="vlinyulumsft_0-1740020287471.png" alt="vlinyulumsft_0-1740020287471.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Arial; font-size: 12.0pt; color: black;" lang="zh-CN"&gt;&lt;SPAN&gt;Of course, if there is anything else we can do for you, please do not hesitate to contact us. Once again, thank you for your contribution, and we look forward to your response.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 6pt; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 6pt; font-family: Arial; font-size: 12.0pt; color: black;"&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-top: 0pt; margin-bottom: 8pt; font-family: Arial; font-size: 12.0pt;"&gt;Leroy Lu&lt;/P&gt;</description>
      <pubDate>Thu, 20 Feb 2025 02:58:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/PowerBi-Rest-API-Reports-Export-To-File-using-bookmarks/m-p/4418725#M59587</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2025-02-20T02:58:34Z</dc:date>
    </item>
  </channel>
</rss>

