Forum Discussion

nikhiluppal's avatar
nikhiluppal
Copper Contributor
Jan 08, 2024

Trying to create approval request in power automate to move file.

Hello Everyone

I am trying to create a Power Automate Flow in which when I upload the file in a share point folder. The request will go to a person on outlook for approval along with the link of that File. If person rejects the request then file must move to a Folders named as rejected documents.

 

I am facing some issues in the flow.

1. when I am run the flow in my outlook email. I am not getting the link of the File. I am sharing the email screenshot below.

 

2. When I run the flow and I rejected the request it is giving me bad request error. (Screenshot attached below)

 

I am trying to rebuild this based on the training material from Microsoft learn

Link: https://learn.microsoft.com/en-us/training/modules/build-approval-flows/2-create-approval-request

 

If anyone can help me these issues. It help me understanding what the issue really is.

 

Thanks in advance. 

  • SanthoshB1's avatar
    SanthoshB1
    Bronze Contributor

    nikhiluppal 

     

    The file link that you have to validate need to be appended on the 'Item Link' property in order to have it available in the Outlook approval process
    triggerOutputs()?['body/{Link}']

     

    Then, it will make an approval request along with the file link in Outlook.

     

    And use the relative path of the file to move it to the 'Reject Document' folder.
    triggerOutputs()?['body/{FullPath}']

     

    Let me know if this helps. 

Resources