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 / Flow to move file upon...
Power Automate
Answered

Flow to move file upon 'approval'

(0) ShareShare
ReportReport
Posted on by 159

Hello all, I know there is a way to do what I'm trying to do and I'm still looking for a solution! There must be a better way!

 

I have a flow that is triggered when file is created or modified in a SP doc lib. It checks to see if 'Content Approval Status' = Denied. If yes then the file is moved to a different folder. Problem: The flow triggers and action triggers before the approval process is complete and thus always returns a 'false' value. Apparently the flow is not retriggered upon the metadata being updated and the 'content approval' being set to denied. 

 

Looking into 'Do Until' control. Another user recommended using a delay command and that works fine but don't have enough control of this function. Need to utilize a do until or some sort of loop command that continues to check the 'content approval' column until the is a value of either 'approved' or 'denied' and wait/do nothing if 'draft' or 'in process'.

 

Can anyone help here and thanks so much in advance!

Current flow attached.

 

Tom

Flow 1.PNGFlow 2.PNG

Categories:
I have the same question (0)
  • tomh Profile Picture
    159 on at

    I've updated my flow and have everything working accept for the 'do until' function. It won't quit! Even when the parameters are satisfied. However, need help now writing the expression to accommodate an or statement for the 'Content Approval Status' field. 

     

    Currently the function reads: Do until-'Content Approval Status' CONTAINS Denied

    and looking to write:

    Do until-'Content Approval Status' CONTAINS Denied or Approve

     

    Thanks all!

     

    Tomflow5.PNG

  • Verified answer
    v-bacao-msft Profile Picture
    on at

     

    Hi @tomh ,

     

    Please try this expression:

    @equals(or(contains(body('Get_file_properties')?['{ModerationStatus}'], 'Denied'), contains(body('Get_file_properties')?['{ModerationStatus}'], 'Approved')), true)

    70.PNG 

     

    Best Regards,

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard