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

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

Reply
Anonymous
Not applicable

API Help (I Think)

Let me start by stating that I am very new to power query and M and PowerBI. Now that this is out of the way, I need assistance with populating a child table using an API call.

 

The parent table is populated using a call like this:

http://oursite.webservices.mydata.com/webapi/api/v1/records?ApiKey=xxxxxxxxxxxxxxxxxx

 

It creates a table with the following

RecordID

Customer Name

Type

Date

1

Customer 1

User

1/1/2017

2

Customer 2

User

2/1/2017

 

To call the details for each record we use a call like the following:

http://oursite.webservices.mydata.com/webapi/api/v1/record/[RecordID]?ApiKey=xxxxxxxxxxxxxxxxxx

 

Which creates a single entity like

RecordID

Location

Active

Open

1

North

True

1/1/2017

 

All API requests return a JSON document.

 

Being new to all of this I can’t figure out how to either repeat the call for each child record or if there is a function that will pass the RecordID to the 2nd API call for each of the RecordID’s in the first table.

 

Any help would be appreciated and if you can point me to any good reference material I would be indebted to you. Thank you in advance for any and all comments and assistance.

1 REPLY 1
Eric_Zhang
Microsoft Employee
Microsoft Employee

@Anonymous

I think you can reference this thread Write M code to run multiple queries and the append them all into a single table.

Please note my comments in that thread.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.