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 / Approval Flow to Delet...
Power Automate
Answered

Approval Flow to Delete a File from Document Library from SharePoint

(0) ShareShare
ReportReport
Posted on by 57

I have created an approval flow that confirms the deletion of any file from a document library. When a file is deleted it will send an approval email to the approval user to approve/ reject the deletion. 

 

When he rejects it should put back the file into the document library. It is working well except when its come to restore the file from the Recycle Bin it does not execute this action. ! 

Fatimah_33_0-1600929688938.png

This is the Restore Step:

Fatimah_33_1-1600929934028.png

 

Categories:
  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Fatimah_33 

     

    Check your run history and find the values? Especially the FilterArray?

     

    Thanks

  • Fatimah_33 Profile Picture
    57 on at

    I have checked the output body for the array, and it is null []. I think this is the error in my flow.

    any solution for this!

    @abm 

  • Verified answer
    Fatimah_33 Profile Picture
    57 on at

    I have deleted the filter array from the flow. because I found that no need for it just to convert the object of JSON to array for the recovering purpose. I have added the body('Parse_JSON')['d'][''results'] in to the Http request value and it worked. 

     

     

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Fatimah_33 

     

    Check the flow actions steps dynamic mappings? Also check whether data exists in SharePoint for the filter you looking? 

     

    Thanks

  • abm abm Profile Picture
    33,004 Most Valuable Professional on at

    Hi @Fatimah_33 

     

    Just saw you update regarding its solved. If your problem has solved, please go ahead and mark the post as solved by clicking “Accept as Solution” so that this thread will be marked for other users to easily identify!

     

    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 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard