cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JWatson Frequent Visitor
Frequent Visitor

API Json response

I'm using a service to kick off a Power BI refresh from an API call. I want the service to wait for a return status of completed before continuing. The issue im having is the saves response file always has 4 items in the array, after just one call. And everytime its ran succesfully, the information in the response file is always the exact same. Why is that?/What am I doing wrong?

 

And is it possible to get a reponse satus while its running, and then an updated one once completed? Thanks

 

json response.PNG

 

3 REPLIES 3
Community Support Team
Community Support Team

Re: API Json response

Hi JWatson,

 

Based on your screenshot, it seems like you are using schedule refresh rest api and the refresh starttime and end time has been responsed to your client. What's the issue? Could you share more details?

 

Regards,

Jimmy Tao

JWatson Frequent Visitor
Frequent Visitor

Re: API Json response

Thanks for replying.

 

I was expecting only one response as opposed to the four I recieved. And the start and end times are never different no matter when its ran. I have it creating a new file each time so I can compare. I can't imagine that being correct.

JWatson Frequent Visitor
Frequent Visitor

Re: API Json response

UPDATE:  I realize that my refreshes have not been working. The list I keep getting are the only four succesful runs, even though the program finishes with success. So I need to get that corrected.

 

My other questions are, is it possible to get a status back during the process? Or is it only returned with either completed or failed? And whats the correct way to only check the lastest refresh? The ?top parameter hasnt been working for me. But maybe I am using it incorrectly.

 

https://api.powerbi.com/v1.0/myorg/groups/{groupid}/datasets/{datasetid}/refreshes/?top=1

 

Thanks

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors