Forum Discussion

Thasos's avatar
Thasos
Regular Visitor
3 years ago
Solved

Multiple strings as input for API in Power BI

Hi community,   While working on a report, I've run into some trouble. I am in the following situation: I want to retrieve the balance of a project via an API. The input for the API is a Project ID...
  • Thasos's avatar
    Thasos
    3 years ago

    Oh wow, after (A LOT) of hours trying to figure out a solution, it seems like all I had to do was to add a 'Relative path': = Table.AddColumn(#"Rijen gegroepeerd", "Aangepast", each let
    Bron = Json.Document(Web.Contents("https://www.yanomo.com", [RelativePath="/api/v1/projects/balances?id="&[StringProjectID]]))
    in
    Bron)

     

    And now it works perfectly: the error is gone and the automated refresh is again possible!