Forum Discussion

leemat's avatar
leemat
New Member
2 years ago
Solved

Dynamic DataSource Error - RelativePath and Query?

Hi I am trying to publish this report to powerbi online but i cannot get it to refresh getting the error that it cannot refresh dynamic datasources. I did some research and the issue seems to be that...
  • Jonvoge's avatar
    2 years ago

    Hi leemat

     

    As an example of creating a Web data connection using URL and Relative Path, you can see an example in the below that I use to extract Strava data:

     

    let
        RelativePath = "/" & AthleteID & "/stats",
        Payload = [RelativePath = RelativePath, Headers=[Authorization = "InsertTokenHere"]],
        Source = Web.Contents("https://www.strava.com/api/v3/athletes", Payload),
        JSON = Json.Document(Source)
    
        in
        JSON



    _____________________________________________________
    I hope my comment was helpful.
    If your question was answered, please mark your post as 'Solved' and consider giving me a 'Thumbs Up'.
    Find me on LinkedIn, Sessionize, or my blog Downhill Data