cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GavinFins
Helper II
Helper II

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

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

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."

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

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

Still doesn't appear...

 

Capture.PNG

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

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,



Brilliant. Thanks Vijay! 😀

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (3,196)