Skip to content

Commit

Permalink
Bug fix + Readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
tirnovar committed Aug 29, 2024
1 parent d8e828d commit 8fd2eb7
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
Binary file modified .DS_Store
Binary file not shown.
Binary file modified 01 - Connector/pbiAdminAPI.mez
Binary file not shown.
26 changes: 15 additions & 11 deletions 03 - Development/pbiAdminAPI/pbiAdminAPI.pq
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,6 @@ MetricsNavigation = () as table =>
"Function",
"GoalValuesAndNotes",
true
},
{
Extension.LoadString("GroupsCaller"),
"GroupsCaller",
pbiAdminAPI.GroupsCaller,
"Function",
"GroupsCaller",
true
}
}
),
Expand Down Expand Up @@ -504,6 +496,14 @@ FunctionsNavigation = () as table =>
"Function",
"OwnAPICall",
true
},
{
Extension.LoadString("GroupsCaller"),
"GroupsCaller",
pbiAdminAPI.GroupsCaller,
"Function",
"GroupsCaller",
true
}
}
),
Expand Down Expand Up @@ -637,7 +637,7 @@ pbiAdminAPI = [
Headers = [
#"Content-Type" = "application/json"
],
Query = Record.AddField(queryRecord, "$skip", Text.From(index))
Query = Record.AddField(queryRecord, "$skip", Text.From([index]))
]
)
)[value]?,
Expand Down Expand Up @@ -3317,10 +3317,14 @@ ScannerAPIStatusAndResult = (optional scanId as text) =>
in
functionVarTester;

//**** GroupsCaller
[
DataSource.Kind = "pbiAdminAPI"
]
shared pbiAdminAPI.GroupsCaller = Value.ReplaceType(GroupsCaller, GroupsCallerType);

GroupsCallerType = type function (
optional workspaceId as (
optional expandParameter as (
type text meta [
Documentation.FieldCaption = "expandParameter",
Documentation.FieldDescription = "expandParameter represents what you want to expand. If you want to expand all, just leave it empty.",
Expand Down Expand Up @@ -3382,7 +3386,7 @@ GroupsCaller = (optional expandParameter as text) =>
Headers = [
#"Content-Type" = "application/json"
],
Query = Record.AddField(queryRecord, "$skip", Text.From(index))
Query = Record.AddField(queryRecord, "$skip", Text.From([index]))
]
)
)[value]?,
Expand Down
6 changes: 6 additions & 0 deletions 03 - Development/pbiAdminAPI/resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -312,4 +312,10 @@
<data name="ExportedReportBy30Days" xml:space="preserve">
<value>Exported Reports By 30 Days</value>
</data>
<data name="Domains" xml:space="preserve">
<value>Domains</value>
</data>
<data name="GroupsCaller" xml:space="preserve">
<value>Groups Extended Caller</value>
</data>
</root>
2 changes: 2 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ ID | Name | Description
│ ├── Avaiable Features
│ ├── Encryption Tenant Keys
│ ├── Imports
│ ├── Domains
│ ├── Links shared to whole organization
│ ├── Reports published to Web
│ ├── Tenant Settings
Expand Down Expand Up @@ -88,6 +89,7 @@ ID | Name | Description
└── Functions library
├── (fx) Execute Query against dataset
├── (fx) Own API Call
├── (fx) Groups Extended Caller
├── (fx) User - Artifact Access
└── (fx) User - Subscriptions
Expand Down

0 comments on commit 8fd2eb7

Please sign in to comment.