Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Iterate Through API Calls with Content

I have an API that has a limitation on the number of identifiers you can send in at once. Because of this I need to be able to call this API and iterate through it dynamically, so I can send as many ...
  • ImkeF's avatar
    3 years ago

    Hi Anonymous ,
    Table.AddColumns should work. Very strange that your first attempt returned that error-message (if the column "payload") really has binary content in it.
    However, there is a syntax-error in your second attempt, maybe fixing that will make it work:
    = Table.AddColumn(payload, "Results", each Json.Document(Web.Contents(apiUrl, [Headers=headers,Content=Text.ToBinary([payload])])))