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 / Set Approval Status fr...
Power Automate
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?

Categories:
  • PrasadAthalye Profile Picture
    on at

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

     

    PrasadAthalye_0-1601599663453.png

     

  • Fatimah_33 Profile Picture
    57 on at

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

  • PrasadAthalye Profile Picture
    on at

    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

    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

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

  • Fatimah_33 Profile Picture
    57 on at

    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

    @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

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
11manish Profile Picture

11manish 317 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 247

#3
Henil Profile Picture

Henil 117

Last 30 days Overall leaderboard