Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.