Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Manually triggering Approval flow

(1) ShareShare
ReportReport
Posted on by 45

Hello I am new to PA world so please don't be too outraged if I ask a simple question 🙂

 

Basically I have created an Approval flow which starts with a DOCX file being uploaded to Submitted folder. The whole approval process seems to be working great overall, but issue I encountered is when I try to change file name after uploading it into the Submitted folder. What I would like to try to achieve is to enable users to upload the file,  makes some changes in it if required and only then to trigger the flow, so something like a manual trigger.

 

Is there an option to only trigger the whole approval process/flow manually by the user who uploaded the file? If so how do I do that and where does user need to trigger the workflow?

 

I started with When a file is created (properties only) - but then I cannot find an option to manually trigger it after uploading the file and before going into Start and Wait for Approval process. 

 

All help would be much appreciated.

  • admr Profile Picture
    45 on at
    Re: Manually triggering Approval flow

    Thanks for a detailed explanation, I don't quite get why the trigger is only showing ID and not File Identifier. The File Identifier only has shown up on the list when I used Compose function and as per my Flow (1) image attached to post #10 I used For a Selected File, not Item.

  • Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Manually triggering Approval flow

    The first one in your screenshot is the one you want.  But if you look at it you will see the one you were using was /27 and this one will be something looking like a relative file path. That should be available in the "for a selected file" trigger also.  Make sure you aren't using "for a selected item".

  • Verified answer
    Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Manually triggering Approval flow

    The compose was just an easy way to show the dynamic content available.  It isn't needed for what you want to do.  If you look at the dynamic content you will see there is an ID and a file identifier. One identifies the integer id of the metadata item holding the file, the other is the path to the file.  You need the one that is the path, the file identifier.  You just need to pick the right one from the dynamic content.

     

    No you don't need another get file properties. The email of the person who originally created the file and the one who last modified it are available as dynamic content. Assuming the person who is submitting for approval is the last modifier of the file entry you can just use that. Otherwise you would need an input field in the trigger like you were doing. Just be sure to use modified By Email and not modified by. Modified by is the object.  Modified by email is the email address contained in that object.

  • admr Profile Picture
    45 on at
    Re: Manually triggering Approval flow

    Okay nevermind once I removed manual email input and just used User email (of one who created original file) it all works! Happy days 🙂 Thank you again for your help, to what address do I send a bottle of champagne? 🙂 

  • admr Profile Picture
    45 on at
    Re: Manually triggering Approval flow

    Finally it worked and clicked! Brilliant thank you, would you care to reassure me if I stand correct - does compose take what I get from properties file (ID) and changes it to Identifier which I can use in order to move the file? 

     

    I now have another query if I may - so at the minute I asked to input email address when manually triggering the flow, however I would like it to be automatically loaded up based on person's who is pulling the trigger email address. Should I add another Get File properties action to pull out email address off it and compose it into email info that is being able to read by move to file? 

  • Verified answer
    Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Manually triggering Approval flow

    Just do it right after the trigger.  Here I have a trigger and then the get file properties.  In the compose that follows you can see all the dynamic content available from the get file properties.

    image.png

  • admr Profile Picture
    45 on at
    Re: Manually triggering Approval flow

    Would you be able to explain where in the chain I should do that, is it before Move the file? Also what additional info would need to be taken out in order to move the file, can I get additional info such as Identifier (which worked for other trigger)?

  • admr Profile Picture
    45 on at
    Re: Manually triggering Approval flow

    Thank you for your response again, it is much appreciated. In terms 1) I assigned only one approver in this flow, however I take your point on swapping that around with Rejected which makes perfect sense and I can update. However this point is not what is messing up the flow (for now). But now onto the 2) which is more relevant to my issue. See attached below what options I have available, ID is the one that is closest to Identifier which occurs when using other trigger as mentioned in post #6.

  • Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Manually triggering Approval flow

    The for a Selected File trigger doesn't contain as much information as the when a file is created trigger. But you can use a Get file properties action to get any additional information you need, like who modified the file.

  • Pstork1 Profile Picture
    65,928 Most Valuable Professional on at
    Re: Manually triggering Approval flow

    I see a couple issues with your flow.

    1) Outcome is a comma delimited string of the responses of all approvers. So it will only equal Approve if you are only sending to one approver. I normally test against Outcome contains Reject.  That will work no matter how many approvers there are.

    2) you are using item ID to select the file to move. You need to use the File Identifier which is different dynamic content. that's why it can't find the file.

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz โ€“ Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Communityโ€ฆ

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,596 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,928 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow