Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

How set schedule refresh with api web

Hello, I have an error message with the impossibility of programming the refresh of my dataset.

 

"You cannot schedule refresh for this dataset, because the following data sources do not support refresh at this time:"

 

I am using a web api with a token system. See the screen

My function:

= (tableImport) =>
let
Source = Json.Document(Web.Contents("https://stafiz.net/api/" & tableImport, [Headers=[Authorization="Bearer " & ApiToken]])),
ConvertTable = Table.FromRecords({Source}),
Develop = Table.ExpandListColumn(ConvertEnTable, "data"),
KeepData = Table.SelectColumns(Developer,{"data"})
in
KeepData


And this with my "ApiToken" parameter in text type.

What is the workaround of the problem please? I came across this article but my technical level is not enough to understand what to do. Thanks a lot for your help.

 

2 Replies