Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Issues with dynamic token: dynamic data sources aren't refreshed in the Power BI service, this datas

Hi all, I trying to fetch data via API which needed dynamic token; I am successful in retriving data in Power BI desktop but when I publish the same on Power BI Service I am getting an error (when r...
  • Anonymous's avatar
    Anonymous
    3 years ago

    I got the solution from Curbals youtube video.

    all dynamic parts must be added as query then it will work.
    Json.Document(Web.Contents(DataURL,
    [
    RelativePath = "performance?",
    Query = [
    startDate=sDt,
    endDate=eDt
    ],
    Headers=[Authorization="Bearer " & Token()]
    ]))