cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

Export / Create Audit Log to SharePoint (Workflow History)

Hi all. 

 

Backstory: I had a flow that ran perfectly up until December 2018. The purpose of the flow was to purge / delete items that matched or is greater than the purge date. However, on November it decided to delete my entire SharePoint list with all the flow histories gone. I requested my org site admin to review my flow history but he didn't answer back. Since then, the flow works as intended.

 

Since the flow history is saved for 30 days only and I know I can export my flow history manually, but is it possible to create a flow history within my flow or somehow capture flow id and save it to my SharePoint? If possible, the custom flow history / audit log would process something like this:

 

1. Create CSV Table

2. For each item, capture event status (Succeed, Failed - with error code)

3. Capture Flow ID

4. Capture Flow runtime

5. Create File to SPO with timestamp

 

My flow history will then be used in a Power BI report.

Thanks for the support!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Export / Create Audit Log to SharePoint (Workflow History)

Hi @hnguy71 ,

 

When a flow runs, you could take a try to get the flow id refer to link below and then you could save it to your sharepoint :

https://veenstra.me.uk/2018/06/19/microsoft-flow-which-flow-ran-on-my-item/

 

However, if you want to get all flow id from a flow run history,I afraid that there is no any way to achieve it.

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Export / Create Audit Log to SharePoint (Workflow History)

Hi @hnguy71 ,

 

When a flow runs, you could take a try to get the flow id refer to link below and then you could save it to your sharepoint :

https://veenstra.me.uk/2018/06/19/microsoft-flow-which-flow-ran-on-my-item/

 

However, if you want to get all flow id from a flow run history,I afraid that there is no any way to achieve it.

 

Best regards,

Community Support Team _ Alice Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Top Solution Authors
Top Kudoed Authors
Users online (7,021)