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 / Get a list of flows in...
Power Automate
Unanswered

Get a list of flows in an environment which includes the owner of the flow

(1) ShareShare
ReportReport
Posted on by 46
Hello,
 
I've created a Power Automate flow using the "List Flows as Admin (V2)" action.  The idea is to get a list of flows that are created in an environment and send the list in an email.  This flow runs on a schedule and checks if any new flows are created within 24hrs.  In the "Send an email (V2)" action, I want to include dynamic content that includes the flow name and the owner of the flow. However, the "List Flows as Admin (V2)" action does not provide a dynamic content for a flow owner.  Is there a way to gather a list of flows which includes the name of the flow, the state and the owner?
Categories:
I have the same question (0)
  • Kameshm05 Profile Picture
    310 Moderator on at
    Hi

    ​​​​​​​yes there is no suggestion in the dynamic content. please use the below expression to get the ownerid,state and name of the flow.
    1. For Flow Name - items('Apply_to_each')?['properties/displayName'] 
    2. For OwnerID - items('Apply_to_each')?['properties']?['creator']?['userId']  
    3. Flow State - items('Apply_to_each')?['properties']?['state']  
    Change the Apply to each action name as per your loop. For the owner displayname pass the ownerid to 'Get User Profile(v2)'.

    Please reply here if it doesn't works.
    ​​​​​​​Thanks
  • itchel123 Profile Picture
    46 on at
    Hi Kameshm05,
     
    Your answer works.  Is there a way to get the environment name and not the GUID?
     
    Thank you.
  • Kameshm05 Profile Picture
    310 Moderator on at
    Hi,

    In Order to get environment name, I guess there is no other way. But I  have a workaround.
    • Add this action 'List My Environments', it will return all your environments where you are part of admin.
    • Add 'Filter Array' Action(In the from pass the Value from the  'List My Environments', In the left side of condition add this expression item()?['name'], In the right side condition add this expression items('Apply_to_each')?['properties']?['environment']?['name'])
    • Add the compose below , add this expression to return environment name first(body('Filter_array'))?['properties']?['displayName']

    Please verify this as answer if it works
    Thanks

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard