@@ -313,14 +313,6 @@ MetricsNavigation = () as table =>
313313 "Function",
314314 "GoalValuesAndNotes",
315315 true
316- },
317- {
318- Extension.LoadString("GroupsCaller"),
319- "GroupsCaller",
320- pbiAdminAPI.GroupsCaller,
321- "Function",
322- "GroupsCaller",
323- true
324316 }
325317 }
326318 ),
@@ -504,6 +496,14 @@ FunctionsNavigation = () as table =>
504496 "Function",
505497 "OwnAPICall",
506498 true
499+ },
500+ {
501+ Extension.LoadString("GroupsCaller"),
502+ "GroupsCaller",
503+ pbiAdminAPI.GroupsCaller,
504+ "Function",
505+ "GroupsCaller",
506+ true
507507 }
508508 }
509509 ),
@@ -637,7 +637,7 @@ pbiAdminAPI = [
637637 Headers = [
638638 #"Content-Type" = "application/json"
639639 ],
640- Query = Record.AddField(queryRecord, "$skip", Text.From(index))
640+ Query = Record.AddField(queryRecord, "$skip", Text.From([ index] ))
641641 ]
642642 )
643643 )[value]?,
@@ -3317,10 +3317,14 @@ ScannerAPIStatusAndResult = (optional scanId as text) =>
33173317 in
33183318 functionVarTester;
33193319
3320+ //**** GroupsCaller
3321+ [
3322+ DataSource.Kind = "pbiAdminAPI"
3323+ ]
33203324shared pbiAdminAPI.GroupsCaller = Value.ReplaceType(GroupsCaller, GroupsCallerType);
33213325
33223326GroupsCallerType = type function (
3323- optional workspaceId as (
3327+ optional expandParameter as (
33243328 type text meta [
33253329 Documentation.FieldCaption = "expandParameter",
33263330 Documentation.FieldDescription = "expandParameter represents what you want to expand. If you want to expand all, just leave it empty.",
@@ -3382,7 +3386,7 @@ GroupsCaller = (optional expandParameter as text) =>
33823386 Headers = [
33833387 #"Content-Type" = "application/json"
33843388 ],
3385- Query = Record.AddField(queryRecord, "$skip", Text.From(index))
3389+ Query = Record.AddField(queryRecord, "$skip", Text.From([ index] ))
33863390 ]
33873391 )
33883392 )[value]?,
0 commit comments