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 / Manually triggering Ap...
Power Automate
Unanswered

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.

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

    There are two possible ways to accomplish this.

    1) Switch the trigger to For a Selected File. This can be used inside SharePoint to manually trigger the flow when the user is ready. 

    2) Add a column to the library with a yes/no or a choice and use a trigger condition to only trigger the flow when that column is set to a particular value.

  • admr Profile Picture
    45 on at

    Thank you for your quick reply, with regards to Option 1 - can you explain in further detail how to set it up? When putting trigger in I am only able to choose Site Name and Library Address and then I can add an Input such as Yes/No (when Yes this triggers the flow). Now how does that work with a file that hasn't been uploaded yet to the relevant folder? We assume that new file is being uploaded every time a new approval is needed.

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Here's an article that walks through how to use "For a Selected File" trigger.  For option 1 there is no yes/no needed.  That was for option 2 which would continue to use your current trigger. Sorry if #2 wasn't clear.  

     

    With option 1 they need to upload the file and then when ready start the approval flow from the SharePoint site user interface. For option 2 the flow starts automatically when they change the metadata properties of the file to set the field to start the flow.

  • admr Profile Picture
    45 on at

    I think you forgot to paste link to the article 🙂 

  • admr Profile Picture
    45 on at

    Okay so I run the flow and seems all is okay until the moment file needs to be relocated to other folder. Basically error is being shown as:

     

    The 'inputs.parameters' of workflow operation 'Send_an_email_(V2)_2' of type 'OpenApiConnection' is not valid. Error details: Input parameter 'emailMessage/To' is required to be of type 'String/email'. The runtime value '"YWRyaWFuLm1yb2N6a293c2tpQHN0ZmMuYWMudWs="' to be converted doesn't have the expected format 'string/email'.

     

    That impacted moving file to relevant folder as per error below:

     

    ActionConditionFailed. The execution of template action 'Move_file_2' is skipped: the 'runAfter' condition for action 'Apply_to_each_2' is not satisfied. Expected status values 'Succeeded' and actual value 'Failed'.

     

    So I got an email saying my file was rejected therefore as per flow email reached me, it's just that file wasn't moved to a relevant folder. I reckon that the reason might be I am using ID as File to move, whereas in my previous flow where I used original method I used Identifier which is now unavailable. Any thoughts as to what I should be using?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    Check the To field in your send an email action.  You aren't sending the email to an actual email address.  It looks like you are loading a record pointer or something instead of an email.

  • admr Profile Picture
    45 on at

    I have chosen option to use email address of a creator of this file, the trouble seems to be that PA is not converting that info from my workplace's Sharepoint to email address but to random string sequence. How I mitigated that is that when manual trigger is initiated I asked to put email address of requester in so that does the trick, but last outstanding issue I have is that the file after rejection or approval doesn't get moved onto Approved or Rejected folder. Any ideas why?

  • Pstork1 Profile Picture
    68,707 Most Valuable Professional on at

    The creator the file will usually come in as an object with a property that contains the email address.  I suspect you are using the object and not the string property.  Are you expecting that to happen automatically?  Or did you include a move file action in the yes and no side of a condition? Can you share a screenshot of what you do after approval?

  • admr Profile Picture
    45 on at

    Please see snapshots of my chain, any reason why For a Selected File is not able to take info off my Office365 comparing to my automatic flow where trigger is When a File is Created (Properties Only) ?

  • admr Profile Picture
    45 on at

    And here is the error snapshot of flow checker. Body on the output message says:

     

      "message": "Failed to verify the existence of source object at 'https://xxx.sharepoint.com/sites/TeamDesign/27' due to error 'The system cannot find the file specified. (Exception from HRESULT: 0x80070002)'.\r\nclientRequestId: c059cd4c-d693-4dab-aa32-dd149ca9a643\r\nserviceRequestId: c059cd4c-d693-4dab-aa32-dd149ca9a643"

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard