Forum Discussion
Boersieee
3 years agoNew Member
Web Contents with multiple RelativePath and Parameter
Dear all, I need some help with the following: when i call the API i'm using for my data, I need to use a parameter which is used by a other query. So in this case: I have a table with all our lo...
- 3 years ago
Instead of
= (LocationID as number)=> let Bron = Json.Document(Web.Contents("https://example.picqer.com/api/v1/locations/", [RelativePath=Number.ToText(LocationID),ProductsParameter="/products"])),Your code should look like
= (LocationID as number)=> let Bron = Json.Document(Web.Contents("https://example.picqer.com/api/v1/", [RelativePath="locations/" & Number.ToText(LocationID) & "/products"])),
lbendlin
Super User
3 years ago
Instead of
= (LocationID as number)=>
let
Bron = Json.Document(Web.Contents("https://example.picqer.com/api/v1/locations/",
[RelativePath=Number.ToText(LocationID),ProductsParameter="/products"])),
Your code should look like
= (LocationID as number)=>
let
Bron = Json.Document(Web.Contents("https://example.picqer.com/api/v1/",
[RelativePath="locations/" & Number.ToText(LocationID) & "/products"])),