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

Re: powerapps form with hyperlink from sharepoint list data

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
Community Support
Community Support

Re: powerapps form with hyperlink from sharepoint list data

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

Re: powerapps form with hyperlink from sharepoint list data

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

Re: powerapps form with hyperlink from sharepoint list data

@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

Re: powerapps form with hyperlink from sharepoint list data

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

Re: powerapps form with hyperlink from sharepoint list data

Any luck folks?

 

Regards

Shaheen

TopShelf-MSFT Community Champion
Community Champion

Re: powerapps form with hyperlink from sharepoint list data

adding in @KeremY for help with this question

Power Automate
Power Automate

Re: powerapps form with hyperlink from sharepoint list data

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

Anonymous
Not applicable

Re: powerapps form with hyperlink from sharepoint list data

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

 

Kind Regards

Shaheen

Helpful resources

Announcements
secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

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