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 / I need to collate Flow...
Power Automate
Unanswered

I need to collate Flow Run History

(0) ShareShare
ReportReport
Posted on by 28

I am trying to write something which collates all the Flow run history for SIEM purposes...

 

I am really struggling to get this working properly though. I can connect with a user account who is admin and get a list of Flows but to get the detailed run history I can only do that if I am a Flow owner and I don't want to start editing Flow ownerships.

 

If I instead create an appreg and service princpial and give it all the Flow permissions and use that, I can connect but it shows no Flows when I make the powerShell call and looking in Fiddler I can see I get errors back from the call it makes:-

 

{"error":{"code":"Forbidden","message":"The service principal with id '05a648a9-a973-4a7c-bd5b-bdcc3c4f3333' for application d28391d3-6efc-4394-a617-35b0176f3333 does not have permission to access the path 'https://api.bap.microsoft.com/providers/Microsoft.BusinessAppPlatform/scopes/admin/environments?$exp...' in tenant 1852a578-cc98-460b-89dc-8af158ad3333."}}

 

and no matter which permission I attempt to give to the app I always get this...

 

Does anyone have any ideas? because the only way to resolve this would be to alter the permission of each and every Flow to get the run history

Categories:
  • CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    @PlanetWilson Can you have a look at this article https://flow.microsoft.com/en-us/blog/download-history-recurrence/

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. 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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard