cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GavinFins
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

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,



View solution in original post

Brilliant. Thanks Vijay! 😀

Helpful resources

Announcements
PA 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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (48,797)