Forum Discussion

JLParrish's avatar
JLParrish
Regular Visitor
1 year ago
Solved

Number of days returned by api admin/activityevents

We have been using the api for admin/activityevents to retrieve data. GET https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime={startDateTime}&endDateTime={endDateTime}&continuation...
  • v-ssriganesh's avatar
    1 year ago

    Hi JLParrish,

    Thank you for reaching out to the Microsoft fabric community forum.

    It looks like the number of days you can retrieve using the Admin API for activity events has recently changed. Previously, you were able to fetch 29 days of data, but now the API request fails when querying beyond 27 days.

    • Microsoft may have recently updated the retention period or the maximum query range for this API. While official documentation should confirm this, your observation suggests that the limit has been reduced.
    • The API may impose stricter validation on the date range, rejecting requests exceeding a certain limit. Try checking the Power BI REST API documentation for any recent changes.
    • If your retrieving 29 days of data was previously working but now fails, I recommend adjusting your queries to request data in smaller chunks (e.g; 27-day intervals) and then combining the results in Power BI.

    If this helps, then please Accept it as a solution and dropping a "Kudos" so other members can find it more easily.
    Thank you.