Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.Contents("URL"&day,
[Headers=
[Accept="application/json",
Authorization="token"
]]))
in
#"Source"
How can I get this to schedule refresh?
I have seen other methods, but none of which also include headers.
Solved! Go to Solution.
Hi @k13,
Try using RalativePath similar to this:Re: PowerBI - Relative Path - Microsoft Power BI Community
Cheers,
John
Hi @k13,
Try using RalativePath similar to this:Re: PowerBI - Relative Path - Microsoft Power BI Community
Cheers,
John
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"
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 8 | |
| 7 |