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

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Set Approval Status from Approved to Pending for file in SharePoint Library

(0) ShareShare
ReportReport
Posted on by 57

I am creating an instant flow that requests for file deletion. So, when the user submits this request I want to change the file status from Approved to Pending. 

I have used directly the action Set content approval status, but it gives an error BadGetway 502. 

 

Any Idea how to convert file status from Approved to Pendding?

I have the same question (0)
  • PrasadAthalye Profile Picture
    on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    @Fatimah_33  Can you check if content approval is turned on?

     

    PrasadAthalye_0-1601599663453.png

     

  • Fatimah_33 Profile Picture
    57 on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    Yes it is on, to the first option ( create major version)

  • PrasadAthalye Profile Picture
    on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    Actually if content approval is on, as soon as you change the file, status should change to pending. Is it not happening?

  • Fatimah_33 Profile Picture
    57 on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    Hello @PrasadAthalye 

    I am requesting to delete such a file through an instant flow. Inside the workflow, I want to change the approval status of the file into pending.  

  • PrasadAthalye Profile Picture
    on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    @Fatimah_33 - Can you please upload picture of the content approval action?

  • Fatimah_33 Profile Picture
    57 on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    Hello @PrasadAthalye 

     

    This is the flow,

    Fatimah_33_0-1601869649635.png

     

    this is the content of the set content approval status action 

     

    delete file 2.PNG

  • Verified answer
    PrasadAthalye Profile Picture
    on at
    Re: Set Approval Status from Approved to Pending for file in SharePoint Library

    @Fatimah_33  - I don't think content approval status column accepts custom values. You may not be able to set custom value.  It only accepts following values... Try something from below like Draft and see if it works.

    • Approved
    • Rejected
    • Pending approval\rejection
    • Draft
    • Scheduled for automatic approval

     

    I think instead of content approval, you should create a custom column called status. Then you can use approval action to send approve card to approver and based on the approver, update the approval status to 'Pending Deletion'.

     

    Like and Mark this as solution if it resolves your issue.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 788 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 452 Moderator

#3
developerAJ Profile Picture

developerAJ 302

Last 30 days Overall leaderboard