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

Notifications

Announcements

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
    302 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
    302 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard