Export Power Automate Flow Run histories using Microsoft 365 CLI

Sample script helps to export all flows and flow run histories using Microsoft 365 CLI command

Hello everyone,

I am back with another sample script using Microsoft 365 CLI. This time I have tries to export all the flow run histories of all flows from the Default Environment in a Power Automate.

I have used the m365 flow list and m365 flow run list commands to retrieve the detailed information of flow and flow run histories. Try the below snippet in your environment to export all those information from a Power Automate flows,

Hope this sample helps you out in some situations. And also please share your thoughts on the sample script…

Shantha Kumar
Shantha Kumar
Articles: 277