Forum Discussion
API call for each record of another API call
- 5 years ago
Yes. Add a custom column in your first query and do Web.Contents("your url" & [ColumnFromFirstWebCall]), where you concatenate the column with the rest of your url.
Pat
Performance will depend on how many there are but it can be done within the query editor. Just make your first API call, expand that to a table and transform as needed, and then add a custom column that uses the contact column in the second API call fo reach row.
Pat
Hi Pat,
Thank you for your answer. I must say I'm still new to Power Query and I'm not sure how to dot it. Should I add custom column in the first query and then add the second API call in that column?
- mahoneypat5 years agoMicrosoft Employee
Yes. Add a custom column in your first query and do Web.Contents("your url" & [ColumnFromFirstWebCall]), where you concatenate the column with the rest of your url.
Pat