web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Attach file url to rec...
Power Apps
Answered

Attach file url to record instead of uploading

(0) ShareShare
ReportReport
Posted on by 34

HI,

 

My form "form1" is connected to a SharePoint list, I need the option of attaching documents which are located on SharePoint in the shared documents folder. when I use the attach field it uploads the documents into the SharePoint list but to save disk space I need a way of not uploading it but to just reference the file location so when the user clicks on the attachment it opens it from the location within the shared documents folder. 

 

any ideas?

 

Thanks

Categories:
  • Verified answer
    zmorek Profile Picture
    3,272 on at

    You mention that the files are on SharePoint in a "shared documents folder," which I'll assume is a library. Here's an option:

     

    1. Add a column in the list that is connected to your form - this will house the URL of the shared document.
    2. Add that column to your form. Delete the control that gets added (most-likely a text box).
    3. Add the library as a data source to your app.
    4. Then to your form, in the data card where you just deleted the default control in, insert a combo box.
    5. Set the combo box's IsSearchable() property to true. Set its Datasource() property to the name of your document library. Set its SelectMultiple() property to false. Edit its fields and set the Primary text and SearchFields to whatever you want to display in the combo box and whatever field you want to search through.
    6. Set the data card that houses the combo box's Update() property to ComboboxName.Selected.'Link to Item'

     

    zmorek_0-1676034379110.png

     

     

  • jsmith2094 Profile Picture
    34 on at

    That worked perfectly!!! Thank you 🙂 @zmorek 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 339 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 289

#3
Mohsin Ali Profile Picture

Mohsin Ali 228

Last 30 days Overall leaderboard