<?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: power bi rest api get all reports with endorsements in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/3123500#M41670</link>
    <description>&lt;P&gt;Picking up on an old topic, but since it is now possible to endorse both Dataset and Reports in the Power BI service &lt;STRONG&gt;can someone explain why this endorse information is not possible to retrieve via the Power BI Rest API&lt;/STRONG&gt;???&lt;BR /&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;responded to another thread similar to this but it seems this has also been dropped&amp;nbsp;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=0f0e7629-8f1d-423e-9c3c-c167cd2c2837" target="_blank"&gt;Microsoft Idea (powerbi.com)&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Mar 2023 09:21:39 GMT</pubDate>
    <dc:creator>cbilsoe</dc:creator>
    <dc:date>2023-03-10T09:21:39Z</dc:date>
    <item>
      <title>power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1552150#M26781</link>
      <description>&lt;P&gt;I finally got my powershell script working to call the Power BI rest methods to extract all workspaces and reports in workspaces.&lt;BR /&gt;But What I am missing is the the endorsement labels for each report. Does anyone know how I can modify this script get that info?&lt;/P&gt;&lt;P&gt;Any help would be appreicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;# need to set this to ensure proper connections
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12

# import modules and login
Import-Module MicrosoftPowerBIMgmt
Import-Module MicrosoftPowerBIMgmt.Profile
Connect-PowerBIServiceAccount

# initialize variables
$uriGroups = 'https://api.powerbi.com/v1.0/myorg/groups'

Write-Host "******* Reading Workspaces *****"
try {
    $workSpacesJson = Invoke-PowerBIRestMethod -Url $uriGroups -Method Get
    $workspaceContents = $workSpacesJson | ConvertFrom-Json 
    $workspaceCount = $workspaceContents.value.count
    $workspaces = $workspaceContents.value 
    Write-Host "Total workspaces:" $workspaceCount

# loop thru the workspaces and get the reports
    foreach ($workspace in $workspaces) {
        $uriReports = $uriGroups + "/" + $workspace.id + "/reports?$expand=endorsementDetails"
        $reportsJson = Invoke-PowerBIRestMethod -Url $urireports -Method Get
        $reportsContents = $reportsJson | ConvertFrom-Json 
        $reportsCount = $reportsContents.value.count
        #$reports = $reportsContents.value 
        Write-Host "Total reports in workspace:" $reportsCount

        Write-Host "******* Exporting workspaces to json file *****"
        $ExportFile = "./export/Reports_"+$workspace.name+".json"
        $reportsJson | Out-File $ExportFile
    }
    if (-Not $?) {
    $errmsg = Resolve-PowerBIError -Last
    $errmsg.Message
    }
} catch {
    $errmsg = Resolve-PowerBIError -Last
    $errmsg.Message
}

Write-Host "******* Exporting workspaces to json file *****"
$ExportFile = "./export/WorkSpaces.json"
$workSpacesJson | Out-File $ExportFile

Disconnect-PowerBIServiceAccount&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Dec 2020 20:12:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1552150#M26781</guid>
      <dc:creator>jvembenil</dc:creator>
      <dc:date>2020-12-15T20:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565724#M26853</link>
      <description>&lt;P&gt;I think this is one of these rare cases where the documentation is ahead of the implementation.&amp;nbsp; I am sure the API team is working on updating that call's return structure.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 18:08:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565724#M26853</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-22T18:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565783#M26854</link>
      <description>&lt;P&gt;Thanks for the input&amp;nbsp;&lt;a href="https://community.fabric.microsoft.com/t5/user/viewprofilepage/user-id/100342"&gt;@lbendlin&lt;/a&gt;&amp;nbsp;. Do you know if there is an idea out there for this or another location where I can post the request to the API team?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 18:37:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565783#M26854</guid>
      <dc:creator>jvembenil</dc:creator>
      <dc:date>2020-12-22T18:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565802#M26855</link>
      <description>&lt;P&gt;here's one of the ideas around that. Says "Needs Votes"&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=0f0e7629-8f1d-423e-9c3c-c167cd2c2837" target="_blank"&gt;Microsoft Idea&amp;nbsp;· Report Endorsement (powerbi.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 18:45:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1565802#M26855</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2020-12-22T18:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1797873#M29112</link>
      <description>&lt;P&gt;It looks like the API documentation is still incorrect. EndorsementDetails are not returned by Get Report or Get Reports in Group.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Apr 2021 13:55:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/1797873#M29112</guid>
      <dc:creator>Boxmodern</dc:creator>
      <dc:date>2021-04-21T13:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: power bi rest api get all reports with endorsements</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/3123500#M41670</link>
      <description>&lt;P&gt;Picking up on an old topic, but since it is now possible to endorse both Dataset and Reports in the Power BI service &lt;STRONG&gt;can someone explain why this endorse information is not possible to retrieve via the Power BI Rest API&lt;/STRONG&gt;???&lt;BR /&gt;&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;responded to another thread similar to this but it seems this has also been dropped&amp;nbsp;&lt;A href="https://ideas.powerbi.com/ideas/idea/?ideaid=0f0e7629-8f1d-423e-9c3c-c167cd2c2837" target="_blank"&gt;Microsoft Idea (powerbi.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 09:21:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/power-bi-rest-api-get-all-reports-with-endorsements/m-p/3123500#M41670</guid>
      <dc:creator>cbilsoe</dc:creator>
      <dc:date>2023-03-10T09:21:39Z</dc:date>
    </item>
  </channel>
</rss>

