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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Change file property a...
Power Automate
Unanswered

Change file property after approval/rejection

(0) ShareShare
ReportReport
Posted on by 25

Hi,

 

I'm having trouble creating a flow for approval of documents and changing the file properties based on the outcome of the approval.

My flow is as follows:

1) For a selected file

2) Start and wait for an approval-Approve/Reject-Everyone must approve.

note- I have 3 persons in the organization that must approve a document before it's declared approved. If either rejects, then the document is declared rejected.

3) Condition based on the outcome - Approve

3.1) If Yes - change file property called "sign-off status" to Approved.

3.2) If No- Change "sign-off status" to REJECTED.

 

The problem with this flow is that it only works if there's only one person assigned for approval in step (2). if I assign more people then the flow seem to always end with step (3.2) regardless of the assignee's reply. I get a notification via Teams that all assignees approved and that the status of the approval is overall approved, yet the file property in SharePoint seems to be REJECTED.

 

What am I doing wrong? Is there a better way of displaying via SharePoint which file is approved and which is not?

 

Thanks for the help!

 

Categories:
I have the same question (0)
  • Verified answer
    Pstork1 Profile Picture
    68,697 Most Valuable Professional on at

    I suspect you are testing the wrong thing in Outcome.  If there are three approvers and they all approve then Outcome will be "Approve, Approve, Approve".  So if you are testing Outcome = "Approve" then it will pick the No side.  I suspect that is what is happening.  I normally reverse the sides and check Outcome Contains "Reject".  That way if any of the approvers reject it will be rejected otherwise it will be approved.

  • Gaia Profile Picture
    25 on at

    Hi,

     

    Thanks for your answer!

     

    I tried the Outcome equal to Approve, Approve, Approve and it indeed worked for when the document was approved by all three approvers, but if even one rejected then the flow would stop and the file property I tried to change was left blank.

    Your other suggestion of reversing the sided and conditioning on outcome contains reject worked perfectly.

     

    Thank you!

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard