<?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 with Powershell : Exporting report with bookmark in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4578079#M59633</link>
    <description>&lt;P&gt;Try the same in the API sandbox. check the syntax there.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Feb 2025 17:26:44 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2025-02-25T17:26:44Z</dc:date>
    <item>
      <title>API with Powershell : Exporting report with bookmark</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4573301#M59627</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't figure how to make a Powershell API calls to export a report with bookmarks...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This piece of code :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$exportBody = @{
   format = "PDF"
   powerBIReportConfiguration = @{
      settings = @{
         locale     = "fr-FR"
      }
   }
} | ConvertTo-Json -Depth 10

$response = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -ContentType "application/json" -Proxy $proxyUri -ProxyUseDefaultCredentials -Body $exportBody&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... is working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as soon as I try to add a specific page/bookmark, I get an error 400 Bad request :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;$exportBody = @{
   format = "PDF"
   powerBIReportConfiguration = @{
      settings = @{
         locale     = "fr-FR"
      }
      pages = @(@{
         pageName = "81438a987ba809f63572"
         bookmark = {name = "0bb3e333319e8ad6c06c"}
      })
   }
} | ConvertTo-Json -Depth 10

$response = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -ContentType "application/json" -Proxy $proxyUri -ProxyUseDefaultCredentials -Body $exportBody&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 13:56:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4573301#M59627</guid>
      <dc:creator>FXFelix</dc:creator>
      <dc:date>2025-02-25T13:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: API with Powershell : Exporting report with bookmark</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4578079#M59633</link>
      <description>&lt;P&gt;Try the same in the API sandbox. check the syntax there.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 17:26:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4578079#M59633</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2025-02-25T17:26:44Z</dc:date>
    </item>
    <item>
      <title>Re: API with Powershell : Exporting report with bookmark</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4585951#M59646</link>
      <description>&lt;P&gt;I do not understand how it can help me : nothing about exporting a report, and anyway, nothing about the syntax of the API calls&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thinking_face:"&gt;🤔&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can you see the syntax ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit : I use that link :&amp;nbsp;&lt;A href="https://playground.powerbi.com/en-us/home" target="_self"&gt;https://playground.powerbi.com/en-us/home&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 11:03:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4585951#M59646</guid>
      <dc:creator>FXFelix</dc:creator>
      <dc:date>2025-02-26T11:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: API with Powershell : Exporting report with bookmark</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4586159#M59653</link>
      <description>&lt;LI-CODE lang="javascript"&gt;$exportBody = @{
   format = "PDF"
   powerBIReportConfiguration = @{
      settings = @{
         locale     = "fr-FR"
      }
      pages = @(@{
         pageName = "81438a987ba809f63572"
         bookmark = @{name = "0bb3e333319e8ad6c06c"}
      })
   }
} | ConvertTo-Json -Depth 10

$response = Invoke-RestMethod -Method Post -Uri $url -Headers $headers -ContentType "application/json" -Proxy $proxyUri -ProxyUseDefaultCredentials -Body $exportBody&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this code works&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was a missing&amp;nbsp;@ before the bookmark.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 14:33:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/API-with-Powershell-Exporting-report-with-bookmark/m-p/4586159#M59653</guid>
      <dc:creator>FXFelix</dc:creator>
      <dc:date>2025-02-26T14:33:32Z</dc:date>
    </item>
  </channel>
</rss>

