Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello all,
In order to avoid a dynamic url in Web.Contents (to automatcaly refresh dashboard in Power BI Services), and given tha paging system of the Azure API, I wrote the code below to achieve so, but I found out that in the HTTP request, the Path variable in query_param is url-encoded, making it differentto the URL expected by the API.
Is there any way to disable this enconding or do you know another approach to change the parameters of the URL properly?
Thank you in advance.
let
GetPages = (Path as text)=>
let
Host = "https://management.azure.com/subscriptions/xxxxxx/providers/Microsoft.Compute/virtualMachines?api-version=2022-11-01",
query_param= [#"api-version"=Path],
Source = Json.Document(
Web.Contents(
Host,
[Query = query_param]
)),
LL= @Source[value],
Next = Text.Replace(Source[#"nextLink"], Host, ""),
result = try @LL & @GetPages(Next) otherwise @LL
in
result,
Host = "https://management.azure.com/subscriptions/xxxxxx/providers/Microsoft.Compute/virtualMachines?api-version=2022-11-01",
Source = Json.Document(Web.Contents(Host)),
Next = Text.Replace(Source[#"nextLink"], Host, ""),
first= @Source[value],
Fullset = first&GetPages(Next)
in Fullset
Any solution? Same here. My Query parameters automaticaly get encoded so instead of the correct parameter:
Please remove the query parameters from the base URL.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 6 | |
| 3 | |
| 3 | |
| 3 | |
| 2 |