Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
dpjm
New Member

Use values returned by API in subsequent API call

Hi Everyone,

 

I've really been pulling my hair out on this one. I want to pull data from multiple API calls into one table. The source is a contracts management system called Concord (https://concordapi.docs.apiary.io/#).

 

I have been successful in using a query to get the list of agreements using "https://api.concordnow.com/api/rest/1/agreement?" that I have successfully transformed into a table. 

 

Now I need to use the unique identifier (UID) field from the first query to execute the second query which will return additional data about the records returned from the first query. This second query is "https://api.concordnow.com/api/rest/1/agreement/{UID}/metadata" but I am struggling to find a way to pass the values from the UID column into this second query, and for it to iterate on the values in that column. 

Any help is greatly appreciated. 

Cheers

1 ACCEPTED SOLUTION
mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to make the first web call and convert that to a table with a UID column, and then add a custom column with this formula:

 

= Web.Contents("https://api.concordnow.com/api/rest/1/agreement/{" & [UID] &"}/metadata")

 

You'll have to figure out authentication using the same approach used in your first call, of course.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
dpjm
New Member

This is perfect. Thank you @mahoneypat 

mahoneypat
Microsoft Employee
Microsoft Employee

You should be able to make the first web call and convert that to a table with a UID column, and then add a custom column with this formula:

 

= Web.Contents("https://api.concordnow.com/api/rest/1/agreement/{" & [UID] &"}/metadata")

 

You'll have to figure out authentication using the same approach used in your first call, of course.

 

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors