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
scurrp
Frequent Visitor

How can I programmatically read Power Query dataflow metadata?

I want to return metadata like the power query dataflow name so if the name changes the metadata will reflect the updated name. 

What I'm thinking is a number of system variables that can be queried in the dataflow:
Something like
_.dataflow.Name - this is the name of the dataflow that is indicated in the title
_.dataflow.TableName

_.dataflow.WorkspaceName

1 REPLY 1
edhans
Super User
Super User

The only way to read metadata about dataflows is using the REST API. See Dataflows - REST API (Power BI Power BI REST APIs) | Microsoft Learn

Some of what you want is there, but not everything directly. The Get Dataflow command though will export the entire dataflow definition to a JSON file, and that will have table names, column names, even column data types. You will just need to parse out the JSON file.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

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.