March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hey Guys,
This topic might be a bit of difficult. I am trying to refresh one specific table in my PBI Service with PowerShell. I am not a professional with PowerShell but I am learning.
I found in documentation, that I need to send JSON where I specify, which table to refresh(I want to refresh table called Sample1). Problem is, whatever I do - I always refresh whole dataset (including the other tables).
Please take a look on my code:
Login-PowerBI
$header = '{
"refresh": {
"type": "full",
"objects": [
{
"database": "Refresh Test",
"table": "Sample1"
}
]
}
}'
Invoke-PowerBIRestMethod -Url 'https://api.powerbi.com/v1.0/myorg/groups/<myGroupId>/datasets/<myDatasetId>/refreshes' -Method Post -Body($header)
Any help is appreciated. Thanks.
Solved! Go to Solution.
Hi @Migasuke
This is the syntax I use below to refersh a single table
{
"type": "full",
"commitMode": "transactional",
"objects": [
{
"table": "Sample1"
}
],
"applyRefreshPolicy": "false"
}
Hi @Migasuke
This is the syntax I use below to refersh a single table
{
"type": "full",
"commitMode": "transactional",
"objects": [
{
"table": "Sample1"
}
],
"applyRefreshPolicy": "false"
}
Thanks. This works!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
32 | |
24 | |
13 | |
11 | |
9 |
User | Count |
---|---|
47 | |
46 | |
23 | |
12 | |
9 |