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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RamyaRascher
Regular Visitor

Refresh Api not working as expected

I have a powershell script to publish and refresh Power BI reports. One of the calls being made is 

 

 

$refreshuri = "https://api.powerbi.com/v1.0/myorg/groups/$GroupId/datasets/$DatasetId/refreshes"

$SecondApiRequestBody = @"
    {
        "type": "ClearValues",
        "NotifyOption": "NoNotification
    }
"@ 
$null = Invoke-RestMethod -Uri $refreshuri -Headers $headers -Method POST -Body ("$SecondApiRequestBody")  -Verbose

 

 

The call is made successfully, however, the data in dataset partitions are not cleared. 

 

Any thoughts on why this could be the reason? 

 

0 REPLIES 0

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors