cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
uogadmin
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
Gristy
Resident Rockstar
Resident Rockstar

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
Gristy
Resident Rockstar
Resident Rockstar

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

uogadmin
Frequent Visitor

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?

 

 

 

 

Gristy
Resident Rockstar
Resident Rockstar

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

uogadmin
Frequent Visitor

thanks Gristy

Helpful resources

Announcements
MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (73,877)