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
}

Report
All responses (
Answers (