Forum Discussion
TK12345
3 years agoResolver II
Help with syntax -'One or more table references a dynamic Data Source. Not able to save dataflow'
Hi there, I have an API that I want to paginate in a Power BI Dataflow. I tried this code in the desktop (dataset) and it refreshes fine. It also shows data in the dataflow but when I close the dat...
- 3 years ago
Put the query pairs into the Query section, not the Relative path section.
- 3 years ago
Thanks, that did the trick.
Solved it like this:(Page as number) as table=>letSource =Json.Document([RelativePath = "/test.test/rest/all/V1/orders",Query = [#"searchCriteria[pageSize]" = Text.From(10),#"searchCriteria[currentPage]" = Number.ToText(Page)],Headers=[#"Authorization" = "Bearer abcdefgheijklmnop"]])
lbendlin
3 years agoSuper User
Put the query pairs into the Query section, not the Relative path section.
TK12345
3 years agoResolver II
Thanks, that did the trick.
Solved it like this:
(Page as number) as table=>
let
Source =
Json.Document(
[RelativePath = "/test.test/rest/all/V1/orders",
Query = [
#"searchCriteria[pageSize]" = Text.From(10),
#"searchCriteria[currentPage]" = Number.ToText(Page)
],
Headers=[
#"Authorization" = "Bearer abcdefgheijklmnop"
]])