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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
dkoziupa-ifc
Frequent Visitor

A Source Rest API that Loops a Parameter

I'm trying to look for all PCs that have whichever software I choose.  As an example, if I select a particular app, I want to see which machine has that app installed.

 

Here is the rest API for finding the machine: List machines API - Microsoft Defender for Endpoint | Microsoft Learn

Here is the rest API for finding the software: List software - Microsoft Defender for Endpoint | Microsoft Learn

Here is the rest API for finding the software per machine: List devices by software - Microsoft Defender for Endpoint | Microsoft Learn

       GET /api/Software/{Id}/machineReferences

 

I don't want to manually create the source hardcoding the ID.  I want the ID to loop through the list of software from the other sofware rest API above.  How do I loop so I don't have to hard code the IDs?

1 ACCEPTED SOLUTION

7 REPLIES 7
lbendlin
Super User
Super User

You would do all this in Powershell?

No, I would like to do this in Power Query.

It will be agonizingly slow. But go ahead.

Slow or not, I am looking to see if someone knows how to do this.  Do you know how to do this in Power Query?  If you know how to do this in both Power Query and PowerShell, please share.

It's a standard Web.Contents call. 

 

I know how to do this in both but I am not a domain admin and have no access to these endpoints.

Do you have a URL or even better, a YouTube video that shows an example then?

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors