Forum Discussion
Get-PowerBIActivityEvents returns a list of objects with empty list attributes
- 1 year ago
Hi Anonymous ,
Thank you for reaching out to Microsoft Fabric Community Forum.
The error you're getting from Get-PowerBIActivityEvents means your current Power BI account doesn't have the required admin privileges to access activity log data.
You must have :
-
Power BI Service Administrator OR
-
Office 365 Global Administrator
If you're not one of these, you'll need to request access from your IT/Admin team.
Regards,
Chaithanya.
-
You might need to add milliseconds to datetimes string to make it valid
Good idea, I changed the dates as such:
$start = (Get-Date).AddHours(-10).ToString("yyyy-MM-ddTHH:mm:ss.fff")
$end = (Get-Date).ToString("yyyy-MM-ddTHH:mm:ss.fff")I still get the same output though
- Deku1 year agoSuper User
Does it work without the activitytype filter?
- Anonymous1 year agoNot applicable
Even without the activity filter, I get the same result.
- Deku1 year agoSuper User
Think either the dates are misformed or no data in the period.
Try outputting the datetimes strings to sense check. Also try looking back a full 30 days, without a activitytype file