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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
ClAgi
Frequent Visitor

Call Rest for every Row in List

Hello,

this is my first post in this PowerBI Forum Smiley Happy

I'm currently developing a PowerBI Connector with calls to a REST service.

I call the webservice '/contacts' which returns all contacts, but only with
id 1234567890

display Test
path /contacts/1234567890

 

I extracted the path to each contact because i need that to call another webservice to get more details

about the contact.

PathList.PNG

 

And now i don't know how to continue.
My thoughts:

- Call the webservice for each row in the list to get detail information about contact

- expand all records in response with ExpandAllRecords.
- add expanded response to a table

 

Goal:

A table with 12 (this example) rows with detail information about the contact.

 

I know there a function like 

List.Accumulate, Table.AddRows etc etc

but i don't see the big thing with all together.

 

Cheers

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

I would create a function that did the REST call. Then you could simply create a new column that calls that function with your contact column (Liste) as a parameter.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you for your response. That was a good advise !

        deletedAllOthers = Table.SelectColumns(expandedPathColumn,{"$items.$path"}),
        columnRenamed = Table.RenameColumns(deletedAllOthers, {"$items.$path", "path"}),
        newCompleteTable = Table.AddColumn(columnRenamed, "expanded", each S.GetResponseSecondLayer([path])),
        expandedAllColumns = Table.ExpandTableColumn(newCompleteTable, "expanded", 
            Table.ColumnNames(Table.Combine(newCompleteTable[expanded])),
            Table.ColumnNames(Table.Combine(newCompleteTable[expanded])))

I only got one last question. I needed 

Table.RenameColumns(deletedAllOthers, {"$items.$path", "path"}),

because 

S.GetResponseSecondLayer([path])

doesn't take [$items.$path]. That gives me an error. How can i use special character in the [] brackets. I got that problem with another function but i can't use RenameColumns there.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors