Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hello, when issuing example query to Activity Events API i'm getting the following response:
"json": {
"error": {
"code": "BadRequest",
"details": [
{
"message": "Object must implement IConvertible.",
"target": "startDateTime"
},
{
"message": "Object must implement IConvertible.",
"target": "endDateTime"
}
],
"message": "Bad Request"
}
},This is the output from Ansible, but i'm getting the same response through the Try It at https://docs.microsoft.com/en-us/rest/api/power-bi/admin/getactivityevents
This is my ansible resource config:
- name: Retrieve PowerBI Activity Events
uri:
url: "https://api.powerbi.com/v1.0/myorg/admin/activityevents?startDateTime={{ '2020-09-01T00:00:00.000Z' | urlencode }}&endDateTime={{ '2020-09-18T00:00:00Z' | urlencode }}"
method: GET
headers:
Authorization: "Bearer {{ powerbi_access_token }}"
status_code: 200
return_content: yes
validate_certs: no
register: activity_response
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.