The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.