web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Nested web api queries
Power Apps
Unanswered

Nested web api queries

(0) ShareShare
ReportReport
Posted on by

Hi,

I am using Power Query in Excel (Mac) and I want to pull in some CSV data from a web API and from one of these columns I want to then run another web API call to return CSV data that I can then bring in.

My first query looks something like this:

 

 

let
 Source = Csv.Document(Web.Contents("https://someapi/..."), [Delimiter = ",", Columns = 30, Encoding = 65001, CsvStyle = CsvStyle.QuoteAlways, QuoteStyle = QuoteStyle.Csv]),
 #"Promoted headers" = Table.PromoteHeaders(Source, [PromoteAllScalars = true])
in
 #"Promoted headers"

 

 

 

In the last column, there is some text in each row like 'ACME1', I then want to call another query with ACME1 as its parameter on the URL like so:

 

 

let
 Source = Csv.Document(Web.Contents("https://secondapi.mydomain/API/param=ACME1"), [Delimiter = ",", Columns = 90, Encoding = 65001, CsvStyle = CsvStyle.QuoteAlways, QuoteStyle = QuoteStyle.Csv]),
 #"Promoted headers" = Table.PromoteHeaders(Source, [PromoteAllScalars = true])
in
 #"Promoted headers"

 

 

I then want to 'Expand' the table brought in so they appear as extra columns for each row from the first table.

 

Basically I think I want an equivalent to a SQL LEFT JOIN like: 

SELECT *
FROM messages m
LEFT JOIN (SELECT * 
 FROM attachments a 
 WHERE a.messageID = m.messageID)

 

Any help is greatly appreciated.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard