Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi Everyone!
Concerning a Web.Contents post call with authorization. How can I let power BI (when trying to make a connection/refresh on the report server) statically evaluate "foo.bar.com/@@login?camefrom=%2F%40%40index" but upon execution the following code should be executed?
Source = Csv.Document(Web.Contents(foo.bar.com, [RelativePath="export/download",Headers=header,Content=Text.ToBinary(body)]),[Delimiter=";"])
(When logging in "foo.bar.com" is redirected to "foo.bar.com/@@login?camefrom=%2F%40%40index", that's why... in Desktop it all works fine however)
Thanks!
Solved! Go to Solution.
Hi @Anonymous ,
Maybe you can try the solution from this post:
Solved: Using Web.Contents with dynamic Google Sheet URL - Microsoft Power BI Community
Google Sheet URL as an example:
(FileID as text) =>
let
//FileID = "Google Sheet File ID",
BasicURL = "https://docs.google.com/",
RelativePathString = "spreadsheets/d/" & FileID & "/export?format=xlsx",
Source = Excel.Workbook(Web.Contents(BasicURL, [RelativePath=RelativePathString]), null, true)
// Source = Excel.Workbook(Web.Contents(BasicURL&RelativePathString))
in
Source
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
Maybe you can try the solution from this post:
Solved: Using Web.Contents with dynamic Google Sheet URL - Microsoft Power BI Community
Google Sheet URL as an example:
(FileID as text) =>
let
//FileID = "Google Sheet File ID",
BasicURL = "https://docs.google.com/",
RelativePathString = "spreadsheets/d/" & FileID & "/export?format=xlsx",
Source = Excel.Workbook(Web.Contents(BasicURL, [RelativePath=RelativePathString]), null, true)
// Source = Excel.Workbook(Web.Contents(BasicURL&RelativePathString))
in
Source
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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 |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 10 | |
| 8 | |
| 7 | |
| 7 |