Forum Discussion
k13
3 years agoFrequent Visitor
Dynamic Querying with Static URL and Headers
Gooday, I have a query that needs to be able to schedule refresh. The following query in desktop can manually refresh: let
day = DateTime.LocalNow()
Source = Json.Document(Web.Conte...
- 3 years ago
Hi k13,
Try using RalativePath similar to this:Re: PowerBI - Relative Path - Microsoft Power BI Community
Cheers,
John
jbwtp
3 years agoMemorable Member
Hi k13,
Try using RalativePath similar to this:Re: PowerBI - Relative Path - Microsoft Power BI Community
Cheers,
John
- k133 years agoFrequent Visitor
Yes, thank you!! This is the code I used to make this work from that link.
let day = DateTime.LocalNow() Source = Json.Document(Web.Contents("URL"&day, [RelativePath = day, Headers = [Accept="application/json", Authorization="token" ]])) in #"Source"