This library allows user to ember Power BI reports in ODC applications.
It requires the report GUID, the embed URL, and the PostGenerateToken object as described in Microsoft's documentation.Embed Token - Generate Token - REST API (Power BI Power BI REST APIs) | Microsoft LearnThe embed URL can be obtained using the reports endpoint. (https://api.powerbi.com/v1.0/myorg/groups/{{WorkspaceId}}/reports)
Slicer load settings doesn't check for a valid slicers object. The developer must ensure it is in the right format.
Use slicers in Power BI embedded analytics | Microsoft LearnHere is a sample valid object
[
{
"selector": {
"$schema": "http://powerbi.com/product/schema#visualSelector",
"visualName": "ed1039ba120e28269174"
},
"state": {
"filters": [{
"$schema": "http://powerbi.com/product/schema#basic",
"target": {
"table": "Table",
"column": "Column"
"filterType": 1,
"operator": "In",
"values": ["abcd"]
}]
}
]
Added optional parameters to define load settings.
Added parameters:
BSD-3 license (https://opensource.org/licenses/BSD-3-Clause)