Call any Power BI REST API with PowerShell

  Рет қаралды 50,501

Guy in a Cube

Guy in a Cube

Күн бұрын

Пікірлер: 50
@RB26_Aces
@RB26_Aces 3 жыл бұрын
Is there a way to run an API call within PowerQuery, for example: to pull in that refresh history json text, so your dataset refresh actually grabs the current refresh history?
@JorgeEscobarMX
@JorgeEscobarMX 11 ай бұрын
This is the best tutorial ever on how to call power BI api. I'm using Python with the requests module for this. This is a good start. I'm also looking how to query power bi datasets using the power bi api.
@davidcousins8407
@davidcousins8407 3 жыл бұрын
Okay, I'm formally calling it "Mister Spinny" in our documentation :D
@buddhigupta3557
@buddhigupta3557 3 жыл бұрын
What about using Power Automate to run these API for automation? Can this be done easily?
@BryantAveyLLC
@BryantAveyLLC 3 жыл бұрын
This is cool, Adam. the PS REST API for Power BI Service would allow you to have more than eight scheduled refreshes in a day, by just scheduling the Power Shell command to trigger a PBI refresh anytime you want, like every 1/2 hour throughout the day, etc. Love it.
@Doffskii
@Doffskii 3 жыл бұрын
The refresh limit includes both scheduled and api refresh.
@davidcousins8407
@davidcousins8407 3 жыл бұрын
Only if you have Premium!
@christopherjohnson3755
@christopherjohnson3755 3 жыл бұрын
Tested this a while back with Power Automate, and the 8 refresh limit still applies.
@MrKor4k
@MrKor4k 3 жыл бұрын
Nice thing you can use REST API with Power Automate. All you need make Azure App with access to base endpoint then you can create custom connector with any url you want.
@kevinnikolai6086
@kevinnikolai6086 3 жыл бұрын
Does it mean I can call any API (Power BI Rest API, Azure API's) with Power Automate ?
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Thank you. Can you do a video exploring PBIRS Power shell cmdlets, setup, config, prerequisites etc. I see users asking for it, probably swagger hub can get them but a video could be helpful.
@jamess7033
@jamess7033 3 жыл бұрын
This was literally going to be my next Google Search after watching this Video, lol.
@eesa4013
@eesa4013 3 жыл бұрын
This is my first time hearing about Power BI REST APIs
@joeseroski1095
@joeseroski1095 3 жыл бұрын
Loved it. Didn't know you could do these things.
@Based-Pharaoh
@Based-Pharaoh Жыл бұрын
Nice video. Currently trying to implement this solution within Python to export an xlsx file which would significantly help solve my current obstacle to automate a specific task at my current organization
@greglilly3866
@greglilly3866 7 ай бұрын
I just converted a Powershell based application with these REST API libraries to a Python application. Works magnitudes better than the Powershell method. I'm pulling down the JSON data and transforming it to Datafram and writing to the Snowflake Cloud Data Warehouse.
@eagillum
@eagillum 2 жыл бұрын
Can you do a video on coding in regular API's? Like not Power BI ones? I have a couple JSON ones I'd like to insert into ... power query somehow...(?)
@MrPranavpatel72
@MrPranavpatel72 3 жыл бұрын
Yes Adam, we already have integrated PBI dataset refresh post our ETL in ADF, which saved a lot of manual refresh of dataset And also we are getting an email alert as well post refresh succeeds or fails. Really great feature though. Cheers!!
@soumyadeepmondal6130
@soumyadeepmondal6130 2 жыл бұрын
Hi! I am currently thinking about using PowerShell to refresh dataflow and check if that dataflow finishes refresh and if yes, then trigger a 2nd dataflow and so, on. I have a few questions if you don't mind answering them. 1st, where are you running your powershell code? Like uploaded in a server or something so that it can run automatically at a scheduled time? I saw that we can upload our powershell code in azure automation but for now my client's organisation has not provided azure subscription, so won't be able to use that. 2nd, Can you send the actual code which is working at your end to see how you are configuring email trigger post failure or success? Thanks!!
@gayathrigopalakrishnann7560
@gayathrigopalakrishnann7560 2 жыл бұрын
Hello ... is there a way to have LIve connection to API connection? we are looking for real time data..
@danielgreenberg5257
@danielgreenberg5257 3 жыл бұрын
What screen capture software do you use to capture your mouse clicks with outlines/rectangles/etc?
@lilynguyen2382
@lilynguyen2382 3 жыл бұрын
This is my first time hearing about Powershell. Is this free? Is anybody allowed to use this?
@vinaymishra06
@vinaymishra06 3 жыл бұрын
Can we get the workspace id dynamically? if yes then can we use poweshell script anyhow to embed the report to web application? This only for the trigerring refresh.
@ihafidh
@ihafidh 3 жыл бұрын
Thank you for mentioning that not all APIs are supported via a service principal. The MS documentation does not mention that.
@LeavingConformity
@LeavingConformity Жыл бұрын
Thanks for this overview! I need to figure out how to use the REST API to return a list of datasets from a couple of specific workspaces that failed in their most recent refresh attempt. Is there a way to do that?
@rihamfathy3521
@rihamfathy3521 9 ай бұрын
I have same problem
@BjornV1976
@BjornV1976 3 жыл бұрын
Now i can build a Power BI with statistics about al the power BI refreshes. :)
@eth6706
@eth6706 3 жыл бұрын
Please tell me this works on PBIRS
@etherlords88
@etherlords88 2 жыл бұрын
If I use -Url, it gives me error, if I use the commands separately like Invoke--powerbirestmethod then enter, then paste the url , enter, then type get and enter, it works. But it does not work if I put everything altogether! Any idea? 😐
@glasskitesmedia
@glasskitesmedia 2 жыл бұрын
Have you logged in first? Try adding this before: Login-PowerBI
@kevinnikolai6086
@kevinnikolai6086 3 жыл бұрын
Can you run the Powershell script (Datasets - Refresh Dataset In Group) from Power BI or are you forced to run it from Windows 10 / On-Premise Server / Azure ?
@ruchigupta1536
@ruchigupta1536 Жыл бұрын
following
@noahhadro8213
@noahhadro8213 3 жыл бұрын
I am getting this alert when I try to log in with powershell? The term 'Login-PowerBIServiceAccount' is not recognized as the name of a cmdlet
@notoriousft
@notoriousft 2 жыл бұрын
Try Login-PowerBI instead.
@DanielWeikert
@DanielWeikert 3 жыл бұрын
Unable to test. The login itself does not work for me AADSTS50011: The reply URL specified in the request does not match the reply URLs configured for the application
@Bharath_PBI
@Bharath_PBI 3 жыл бұрын
Probably, to get the right bit version (32 or 64 bit Power shell)
@vallabhiajay8294
@vallabhiajay8294 3 жыл бұрын
Hi I am trying call powerbi dataset refresh using windows powershell, expect refresh all commands worked but when execute last command of invoke powerbi.I'm running error can anyone help
@vallabhiajay8294
@vallabhiajay8294 3 жыл бұрын
Running into this error message + CategoryInfo : WriteError: (Microsoft.Power...werBIRestMethod:InvokePowerBIRestMethod) [Invoke-PowerBIRest Method], AggregateException + FullyQualifiedErrorId : One or more errors occurred.,Microsoft.PowerBI.Commands.Profile.InvokePowerBIRestMethod
@andriyk7222
@andriyk7222 Жыл бұрын
thanks for sharing!
@visheshjjain
@visheshjjain 3 жыл бұрын
Can we call a REST API from inside a PBI Service Report?
@christopherjohnson3755
@christopherjohnson3755 3 жыл бұрын
You can build a Power Automate custom connector around the Power BI REST API, and then trigger flows from within your report using the Power Automate visual.
@davidcousins8407
@davidcousins8407 3 жыл бұрын
Yes, you can use Power Query to retrieve data from the REST API and this works from within the PBI service.
@visheshjjain
@visheshjjain 3 жыл бұрын
@@davidcousins8407 I’m not sure how that’ll work, as I’m trying to refresh the report on the service using the REST API. Do you have any suggestions or links to articles/videos regarding this?
@christopherjohnson3755
@christopherjohnson3755 3 жыл бұрын
@@visheshjjain for this there is a built in action in Power Automate. You will need to add a Power Automate visual to your report, create a flow from within that visual, and then add the refresh action to this flow. It should be fairly obvious at each stage what to do. David's suggestion is correct as you can pull in things like refresh histories, however you can't trigger things with that method.
@miragliag
@miragliag 3 жыл бұрын
@@davidcousins8407 can you share a powerquery example?
@Phoenixspin
@Phoenixspin 3 жыл бұрын
I'm not rude. I refuse to bother the API when it's resting.
@mohammadsaleh4767
@mohammadsaleh4767 6 ай бұрын
Q: how to connect lightspeed api with power bi.
@TJTHEFOOTBALLPROPHET
@TJTHEFOOTBALLPROPHET 2 жыл бұрын
MAJOR GAME CHANGER!
@michaelc2712
@michaelc2712 3 жыл бұрын
Where’s the best place to report a bug in the REST API?
@musl1618
@musl1618 3 жыл бұрын
Первый!
How to Use List Generate to Make API calls in Power Query
18:27
BI Gorilla
Рет қаралды 43 М.
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 29 МЛН
Call REST APIs with Invoke-RestMethod in PowerShell
30:02
Adam Driscoll
Рет қаралды 18 М.
Power BI PowerShell and the Admin API
12:35
Guy in a Cube
Рет қаралды 34 М.
Calling REST with PowerShell
16:05
John Savill's Technical Training
Рет қаралды 24 М.
Power BI Rest API with PowerShell for beginners
5:55
DevScope
Рет қаралды 789
Streamlining Power BI with PowerShell
48:11
SQLBits
Рет қаралды 538
Power Query - Looping and API Calls!
9:55
BA Sensei
Рет қаралды 9 М.
Power BI Service Principals 101
9:23
Guy in a Cube
Рет қаралды 31 М.