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
Manuel123
Helper I
Helper I

Dynamic Datasource automatic refresh

Dear Helpers,

 

I hope there is a solution to my issue:

 

I have an API Call that gets the latest energy prices from ENTSO-E Platform. I call the API as follows:

Source = Xml.Tables(Web.Contents("https://transparency.entsoe.eu/api?securityToken=" & "MYTOKEN" & "&documentType=A44&" & "in_Domain=" & #"ENTSO-E-Zone-DE" & "&out_Domain=" & #"ENTSO-E-Zone-DE" & "&periodStart=" & "202112312300" & "&periodEnd=" & Date.ToText(Date.AddDays(Date.From(DateTime.LocalNow()),-1),"yyyyMMdd")&"2300", [Headers=[#"Content-Type"="application/xml"]])),

When I publish it to the service it says, that it can't refresh automatic as I use a dynamic datasource. I guess that the calculated period end is the problem. Is there any way to solve this issue or a best practice with dynamic API calls?

 

I look forward to your suggestions

 

Best regards

Manuel

1 ACCEPTED SOLUTION
4 REPLIES 4

Dear @arvindsingh802 ,

 

thank you very much for your reply. I have now this code, however get a 404 error message as I don't know where to put the [Headers=[#"Content-Type"="application/xml"]] Part:

 

Xml.Tables(
        Web.Contents(
            "https://transparency.entsoe.eu/api",
            [
                RelativePath="",
                Query=
                [
                    securityToken="MYTOKEN",
                    documentType="A75",
                    processType="A16",
                    in_Domain=#"ENTSO-E-Zone-DE",
                    periodStart="202112312300",
periodEnd=Date.ToText(Date.AddDays(Date.From(DateTime.LocalNow()),-1),"yyyyMMdd")&"2300"      
                ]
            ]
        )
    )

 

Can you help me out?

 

Best regards

Manuel

Your solution worked, I had another mistake in my code

Hi @Manuel123 

 

Can you share your solution? 

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 Solution Authors