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 / Renaming filename and ...
Power Automate
Answered

Renaming filename and set content approval status - power automate

(0) ShareShare
ReportReport
Posted on by 178

I have a requirement to build an approval workflow so i switched on content approval for the document library. It all works well in power automate as i can use the "Set content approval status" But one other requirement is to be able to use a word template when creating files in the document library and then rename the file accordingly based on some metadata.

My problem is i'm using the "Send HTTP Request" to change the file name like so 

vkFrz

Bu when my flow gets to the "Set content approval status" it fails

 dguXc

 

The reason I think is because of the Etag since i have renamed the file. I get the Etag by using the Get file metadata 

 hOCfD

 
HNVDK

Any ideas what I need to do after renaming a file so i ca set content approval status?

Thanks in Advance

Categories:
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    From memory you can't set the approval status to Approve unless in Pending state. The issue is that when you change the filename it changes from Pending to Draft. So, before you set it to Approve, you'll need to set it to Submit which will put it back to Pending state, and then set it to Approve.

     

    grantjenkins_0-1670494305018.png

     

    grantjenkins_1-1670494324083.png

     

     

     

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 289

#2
11manish Profile Picture

11manish 288 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard