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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.