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 / Require approval of do...
Power Automate
Answered

Require approval of documents in SharePoint using Power Automate

(0) ShareShare
ReportReport
Posted on by 27

Hello,

 

We require to have Approval for only uploaded/added documents,

We try to build this flow:

Require approval of documents in SharePoint using Power Automate | Microsoft Docs

But if we try to follow steps in SharePoint Online tenant, the screens are different than in this procedure, possibly outdated document.

Does anyone know how to build this flow using the current version of the SharePoint Online tenant?

 

Thank you!

Categories:
I have the same question (0)
  • miguelcas Profile Picture
    Microsoft Employee on at

    Hi @lightupdifire 

     

    I'm going to help you with an example to do the approval flow. 

     

    I recommend you to start the flow from scratch and to set the SharePoint library where you want to create the documents to be approved by someone. 

     

    1. We need to add the trigger "When a file is created (properties only)" and setting up with the location of your library. 

     

    miguelcas_0-1639498716919.png

     

    2. Add the action "Start and wait for an approval". This action will wait until someone approve or deny the request. This action can be set up to have multiple approvals or just one person to approve.  Then, a condition it's need it evaluate the response. 

    miguelcas_1-1639498871999.png

     

    3. With the condition ready you can define some extra steps to be done by the flow if the approval is positive or negative. 

     

    miguelcas_2-1639499012615.png

     

     

    Thank you for using Microsoft Power Platform Communities.
    Community Support Team - Miguel Castro.
    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

     

     

  • lightupdifire Profile Picture
    27 on at

    Hello @miguelcas 

     

    Thanks for the help! This flow worked, I try to add an extra step as the main goal is a little bit different:

     

    1. If a file is uploaded (this seems included in "if a file is created")

    2. Start approval flow

    3. For approval it should be:

     a) If approved -> file kept, email sent

     b) If rejected -> file removed, email sent

     

    Now I fail on step 3-b, maybe some advise here please

    lightupdifire_1-1639565055885.png

     

     

  • miguelcas Profile Picture
    Microsoft Employee on at

    Hi @lightupdifire 

    Can you share screenshots about the specific error you are getting in the step 3-b?

  • lightupdifire Profile Picture
    27 on at

    Hello @miguelcas 

     

    Receiving errors like the below, please let me know if more details are required:

     

    lightupdifire_0-1639640220483.png

     

    While getting file ID seems it is the same = 26...

     

    lightupdifire_1-1639640320261.png

     

    I'm suspecting that need to get file properties possibly a different way to set it as file Identifier, to use this Identifier in the file deletion...

     

     

  • lightupdifire Profile Picture
    27 on at

    Hello @miguelcas 

     

    Played a little bit and could get the successful result as below, but not sure if it is the best way to do so, please advise:

     

    lightupdifire_0-1639643217590.png

    lightupdifire_1-1639643246105.png

    lightupdifire_2-1639643270589.png

     

     

     

     

     

  • Verified answer
    miguelcas Profile Picture
    Microsoft Employee on at

    Hi @lightupdifire 

     

    The problem you are getting it's because you are using the ID as the File Identifier. Scroll down in the dynamic content to locate the Identifier Value from "When a file is created (properties only)" trigger. Follow the example I gave to you and complete the filed Identifies like the image below. 

     

    miguelcas_0-1639671357168.png

     

    Thank you for using Microsoft Power Platform Communities.
    Community Support Team - Miguel Castro.
    If this Post helps, then please consider Accept as solution to help the other members find it more quickly.

  • lightupdifire Profile Picture
    27 on at

    Hello@miguelcas

     

    Thanks! This indeed did the trick, I was close... 

     

    Now it works as it should with the below settings! 

     

    lightupdifire_0-1639746301807.png

     

    Thank you for your help! Merry Christmas and Happy New Year 2022!

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 552

#2
Valantis Profile Picture

Valantis 388

#3
11manish Profile Picture

11manish 375

Last 30 days Overall leaderboard