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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Need Help. Need to get...
Power Automate
Unanswered

Need Help. Need to get list of flows and actions in a environment using Web API and powershell.

(0) ShareShare
ReportReport
Posted on by 14

Hi..

I need to get the list of flows and actions for a particular environment using powershell and web api.

I tried using powershell and get admin flows but it didnt return any data as im not the administrator. Will the WebAPI would be able to get the flows and action details without requiring the administrator role ?

 

I used the below code in the script.

 

# List all environments
$environments = Get-AdminPowerAppEnvironment
$environments

# Get list of all flows in the specific environment
$environmentName = \'your-environment-name\' # Replace with the correct environment name
$flows = Get-AdminFlow -EnvironmentName $environmentName

if ($flows.Count -eq 0) {
Handle-Error \"No flows found in the environment $environmentName.\"
}

# Create a list to store flow details
$flowDetails = @()

foreach ($flow in $flows) {
# Get flow details
$flowId = $flow.FlowName
$flowName = $flow.DisplayName

}

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 237 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 227 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 194

Last 30 days Overall leaderboard