cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

create a link to a file in document library

I create a flow that if a list item is created, its attachment will be created in a document library with item's ID and attachment file name as the document name (eg. 12-invoice.jpg)

I want to create an approval flow "Start an approval" and add a link to the 12-invoice.jpg inside the details field, how can I do this?

Thanks,

Joe

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Hey,

 

Two options

 

1. Create a flow to listen on the library for item created and you can insert the link to an item as dynamic paramater

 

1.png

 

2. use your existing flow - you already know the details of the item, so can populate using your already constructed information.

 

2.png

View solution in original post

6 REPLIES 6
Super User II
Super User II

Hey,

 

Two options

 

1. Create a flow to listen on the library for item created and you can insert the link to an item as dynamic paramater

 

1.png

 

2. use your existing flow - you already know the details of the item, so can populate using your already constructed information.

 

2.png

View solution in original post

Thanks Gristy.

 

I use the second method as below

photo1.png

 

I receive the email as below

photo2.png

 

When I click the link, it shows 404 error

photo3.png

But, the file "18-tshirt-black.jpg" is in document library.

photo4.png

 

Do I make any mistake?

 

 

 

 

It looks like your document is inside a folder make sure to include that

From your screenshot, @uogadmin, it looks like your file might actually be in a subfolder called "Vendor Bill", so that URL you're generating may not be right. Perhaps you can fix the URL to include the subfolder or follow Gristy's first option. 

Thanks Sarah

thanks Gristy

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (6,465)