Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
BrianIsTaken
Frequent Visitor

dynamic base url with web.contents and scheduled refresh in power bi service

Hi,

i would like to use the function web.contents to retrieve data from a datasource, but with a dynamic base url. for example web.contents(dynamic.example.com) and then a static path, but when doing so Power bi service gives a error, because the url is dynamic which it cant handle. and in Power BI i see the following error:

BrianIsTaken_0-1705569415130.png

in other posts people used the "skip test connection" option, but that is not available in Power BI service in this case. Does anyone else have a idea/solution for this problem?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

"dynamic base url"  is a no-no.  Use RelativePath and Query instead, or you can try masking your dynamic URL behind a redirect.

 

Web.Contents - PowerQuery M | Microsoft Learn

View solution in original post

5 REPLIES 5
lbendlin
Super User
Super User

"dynamic base url"  is a no-no.  Use RelativePath and Query instead, or you can try masking your dynamic URL behind a redirect.

 

Web.Contents - PowerQuery M | Microsoft Learn

I have the same problem, I did not use Relati and Path and Query, can you help?

 

(produceName as text) as table =>
let
    Kaynak = Json.Document(Web.Contents("https://www.isyatirim.com.tr/_layouts/15/IsYatirim.Website/Common/Data.aspx/MaliTablo?companyCode=" & produceName & "&exchange=TRY&financialGroup=XI_29&year1=2024&period1=12&year2=2024&period2=9&year3=2024&period3=6&year4=2024&period4=3")),
    value = Kaynak[value],
    #"Tabloya Dönüştürüldü" = Table.FromList(value, Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Genişletilen Column1" = Table.ExpandRecordColumn(#"Tabloya Dönüştürüldü", "Column1", {"itemCode", "itemDescTr", "itemDescEng", "value1", "value2", "value3", "value4"}, {"Column1.itemCode", "Column1.itemDescTr", "Column1.itemDescEng", "Column1.value1", "Column1.value2", "Column1.value3", "Column1.value4"})
in
    #"Genişletilen Column1"

 

Merhaba, Lutfen follow the documentation. Use RelativePath and Query parameters. https://learn.microsoft.com/en-us/powerquery-m/web-contents#example-1

I could not solve the queries you specified.

alright thats to bad, Thank you for your response

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors