Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
KEMKEM
Regular Visitor

How to get transactions by Power Bi Powershell module "MicrosoftPowerBIMgmt" programmatically?

I have a PowerShell script where I get all the transactions by using http request below. 

 

'https://api.powerbi.com/v1.0/myorg/groups/' + $DataflowAPI.workspaceId[$i] + '/dataflows/' + $DataflowAPI.objectId[$i] + '/transactions
 
How can I get all the transactions by using the PowerShell module "MicrosoftPowerBIMgmt"
 
At this moment I have found only this part:
 
Connect-PowerBIServiceAccount
 
$results = Get-PowerBIDataflow -Scope Organization
2 REPLIES 2
lbendlin
Super User
Super User

You can run standard REST API calls from PowerShell instead of using the PowerBIManagement convenience functions.

 

Dataflows - Get Dataflow Transactions - REST API (Power BI Power BI REST APIs) | Microsoft Learn

@lbendlin thank you, as you see in my post I already using the Power Bi Rest Api as you described. I only hate the ugly refresh token which is needed for the authentication. I am looking for a solution where I can easy do the authentication with for example a service principal, managed identity or Azure app registration. The modern way. I know that is possible with Connect-PowerBIServiceAccount.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.