cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SharmilaH
Level: Power Up

Error 404 File/folder not found

I am trying to create an approval workflow , which gets triggered when a file is created in a sharepoint folder. So in the approval mail  , I have inluded the file path ( as a dynamic content) in the the "Item Link" field. However , when I get the email , and click on the file path link , I get the error : 

Error 404 : File/folder does not exist

But the folder and the file exisits in my sharepoint site .. 

Can you please help 

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
jwhite
Level 8

Re: Error 404 File/folder not found

Hi @SharmilaH,

The file path and the item link are two distinctly different things.

Unfortunately the data in the trigger "When a file is created in a folder" doesn't include the item link so we have to get it from the file properties as below:

Firstly there's the trigger itself, then we get the file metadata using the File identifier from the trigger and the get the file properties from the meta data:

ItemLinkGet.png

 

We can then use the "Link to item" dynamic data from the get file properties in the approval:

ItemLinkApproval.png

 

Hope this helps!

 

Full flow in spoiler:

Spoiler
ItemLinkFullFlow.png

View solution in original post

2 REPLIES 2
jwhite
Level 8

Re: Error 404 File/folder not found

Hi @SharmilaH,

The file path and the item link are two distinctly different things.

Unfortunately the data in the trigger "When a file is created in a folder" doesn't include the item link so we have to get it from the file properties as below:

Firstly there's the trigger itself, then we get the file metadata using the File identifier from the trigger and the get the file properties from the meta data:

ItemLinkGet.png

 

We can then use the "Link to item" dynamic data from the get file properties in the approval:

ItemLinkApproval.png

 

Hope this helps!

 

Full flow in spoiler:

Spoiler
ItemLinkFullFlow.png

View solution in original post

SharmilaH
Level: Power Up

Re: Error 404 File/folder not found

Thank you very much . This helped and it works .

Thanks once again 

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (5,507)