Forum Discussion
nikhiluppal
Jan 08, 2024Copper Contributor
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.
- SanthoshB1Bronze Contributor
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.
- nikhiluppalCopper Contributor
Thank you helping me.
The first part of the error has resolved as soon as I attached the link to item in SharePoint action.
But the second part of the error is still not resolved as I tried using /Fullpath in SharePoint action when document is rejected. It is showing me following error message
"Failed to verify the existence of source object at 'https://5c8rtl.sharepoint.com/sites/PowerAutomateWorkshop/Approvals Library/How to create a model-driven app using the classic designer.pdf' due to error 'The system cannot find the file specified."
I have also attached the screenshot of the error message as well as of the flow.
It will really helpful if you could please guide me on the error message.
Thanks
Nikhil
- SanthoshB1Bronze Contributor
The error indicates that the source file, which is being attempted to be moved to the reject folder, is not available. can you confirm this on the below path?
If yes, upload a file again and make a retest. Let me know if this helps.