cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

Create shareable link in flow

Hello,

 

I have a flow which triggers when a form submits, populates a Word Template and creates a sharepoint file in a folder. I would then like to create a shareable link of the newly created file and email it, but I am receiving the error message "The file ID is not Valid". Can anyone help please?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Memorable Member
Memorable Member

Re: Create shareable link in flow

Hi @GavinFins 

Final Working Solution.

Please see the below image.

VijayTailor_0-1601306971982.png
working for Me. see the received mail 

VijayTailor_1-1601307039731.png

 

 

Thanks,



View solution in original post

7 REPLIES 7
Highlighted
Memorable Member
Memorable Member

Re: Create shareable link in flow

Hi @GavinFins ,

Why you creating New Sharable Link.?

When the file is created already have an Item to Link value you can send that value into the mail.

when the user clicks on that link he/she can open that file.

Thanks,
Vijay

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

Highlighted
Helper I
Helper I

Re: Create shareable link in flow

Hi Vijay,

 

Thank you for taking a look.

 

Link to item doesn't appear in the dynamic list when I try? Please see attached.

 

Regards

Highlighted
Memorable Member
Memorable Member

Re: Create shareable link in flow

Ohk,

Then Once the File Created you get hte File ID.
add another action Get File Properties Data. and pass the ID of File.

Then you wll get hte Link to Item URl and Pass that URL into Email
Highlighted
Helper I
Helper I

Re: Create shareable link in flow

Still doesn't appear...

 

Capture.PNG

Highlighted
Memorable Member
Memorable Member

Re: Create shareable link in flow

Hi @GavinFins 

Hi
can you remove the Get File Property and Paste the below code into the email body.

 

 

FYI @{triggerBody()?['Author']?['DisplayName']} added a new file: <a href="@{triggerBody()?['{Link}']}">@{triggerBody()?['{FilenameWithExtension}']}</a>. <br><br> Thanks!

 

 

VijayTailor_0-1601304394753.png

 

 

For reference please have a look into the built-in template. 
Built-in Flow Template URL  

Thanks,

Vijay

Highlighted
Memorable Member
Memorable Member

Re: Create shareable link in flow

Hi @GavinFins 

Final Working Solution.

Please see the below image.

VijayTailor_0-1601306971982.png
working for Me. see the received mail 

VijayTailor_1-1601307039731.png

 

 

Thanks,



View solution in original post

Highlighted
Helper I
Helper I

Re: Create shareable link in flow

Brilliant. Thanks Vijay! 😀

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

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

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.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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