Forum Discussion
MarlonPereira
3 years agoRegular Visitor
Iterate through table to make API calls with multiple parameters
Hello! I have the following table T, containing pairs of keys/secrets to access an API: Key Secret abcd1 1234a fgh2 5678b Next, I have a parametrized function F to call an ...
- 3 years ago
Hello, sorry for the delayed response, sudden shift in projects 😕
Your answer was on the right path. What I needed to do: Table.AddColumn(Source, "I", each I([key], [secret])). This way, I've managed to call multiple times each pair key/secret through loop function I.
Thanks!
lbendlin
3 years agoSuper User
instead of List.Generate use Table.AddColumn - column from function call.
- MarlonPereira3 years agoRegular Visitor
Hello, sorry for the delayed response, sudden shift in projects 😕
Your answer was on the right path. What I needed to do: Table.AddColumn(Source, "I", each I([key], [secret])). This way, I've managed to call multiple times each pair key/secret through loop function I.
Thanks!