Forum Discussion

Manuel123's avatar
Manuel123
Helper I
4 years ago
Solved

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

4 Replies