cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

powerapps form with hyperlink from sharepoint list data

Morning Everyone,

 

I have a sharepoint list and one of the fields calculate the location of the list attachements using the formula and the result is a text in the following format with the sharepoint column name as "AttachmentLink"

 

\\x.sharepoint.com@SSL\DavWWWRoot\sites\x\Lists\Tracker\Attachments\13

 

Could you please advise the steps on how I can make the above data visible as a hyperlink and can be clicked?

 

Any help would be highly appreciated.

 

Regards

Shaheen

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous

 

Apologies for the delay, however I also agree with @v-micsh-msft as the best approach to take from PowerApps. This will result in the most perfomant response for attachments. The good news is that you don't need to create any calculated columns in SharePoint to link into attachments. You would just reference them in the formulas. You can show the name of the file, as well as create a hyperlink to the file attachment. I'm including a link to a video that discusses how I put attachments into a collection, then show them in a clickable gallery. I'm thinking you might pick up a few helpful points in that video.

 

https://powerusers.microsoft.com/t5/Community-Video-Gallery/Friday-Functions-Series-Putting-Attachments-into-a-Collection/m-p/97534 

 

Let us know if this helps,

Audrie

 

 

View solution in original post

8 REPLIES 8
v-micsh-msft
Community Support
Community Support

Hi @Anonymous,

 

Could you please share more details about the calculation of the AttachmentLink?

 

Besides, when connected to SharePoint list, there is a way to display the Attachment by the following way:

First(First(List1).'{Attachments}').AbsoluteUri

Add the line above with an Image control, it will show the first attachment of the first item in list1.

If you would like to show all the attachments with a special item, then please consider take use of an image gallery, for example:

Under the Image gallery items property, enter the following:

First(List1).'{Attachments}'

Then within the Image control, under the image prperty, specify the code as below:

ThisItem.AbsoluteUri

Would make it work.

Attachment.gif

 

 

Regards,

Michael

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thanks and apologies Micheal for confusing you with the Attachment usage in my context. The link to the attachment folder is in the below specified format and that is the content of the column and will change with each item (XX changes based on the item ID parameter)

 

"\\x.sharepoint.com@SSL\DavWWWRoot\sites\x\Lists\Tracker\Attachments\XX"

 

Would you able to advise what we could do to show the above output as a hyperlink and that can be clicked?

 

Regards

Shaheen

Anonymous
Not applicable

@v-micsh-msft 

 

Dear Micheal,


Could you please help with the query on getting the following data shown as hyperlink which comes from the sharepoint list as detailed in previous reply? 

 

"\\x.sharepoint.com@SSL\DavWWWRoot\sites\x\Lists\Tracker\Attachments\XX"

 

Regards

Shaheen

Anonymous
Not applicable

Could someone please help with the above request. All I need to know is if this is something that is possible as I tried several methods people have mentioned in this forum but none helped.

Anonymous
Not applicable

Any luck folks?

 

Regards

Shaheen

Anonymous
Not applicable

adding in @KeremY for help with this question

Hi @Anonymous

 

Apologies for the delay, however I also agree with @v-micsh-msft as the best approach to take from PowerApps. This will result in the most perfomant response for attachments. The good news is that you don't need to create any calculated columns in SharePoint to link into attachments. You would just reference them in the formulas. You can show the name of the file, as well as create a hyperlink to the file attachment. I'm including a link to a video that discusses how I put attachments into a collection, then show them in a clickable gallery. I'm thinking you might pick up a few helpful points in that video.

 

https://powerusers.microsoft.com/t5/Community-Video-Gallery/Friday-Functions-Series-Putting-Attachments-into-a-Collection/m-p/97534 

 

Let us know if this helps,

Audrie

 

 

Anonymous
Not applicable

Thanks Audrie, I will work with this method and have accepted your post as the solution. Much appreciated.

 

Kind Regards

Shaheen

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (3,848)