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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How to Attach file in ...
Power Apps
Unanswered

How to Attach file in attachment control from SP Library

(0) ShareShare
ReportReport
Posted on by 6

Hi Everyone,

 

I have a SP list and a SP library, In the Powerapps add form i am adding all the fields in the SP list using SubmitForm method and attachments in the SP document library using power automate. I could able to save it without any issues.

 

But in the edit form I could able to display only SP list field values, how can i show the attachments from the SP library to the attachments field. I am storing the document in the SP library along with the SP list Unique key to retrieve the documents based on the SP list Item.

 

Any help would be appreciated, thanks in advance!

Categories:
I have the same question (0)
  • indhaa Profile Picture
    on at

    Hi

     

    You can add the Default Attachment column in your SP List to your Form. 

    indhaa_0-1651774862369.png

     

  • Partha Profile Picture
    6 on at

    I have added attachment field already i need to attach the file in attachment field from SP library the form is connected to the SP list datasource , but i need to attach the document from the sp library in custom way.

  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @Partha ,

     

    One method is to create a collection and set attachment control's Items to this collection.

    vxiaochenmsft_0-1652152360036.png

    ClearCollect(Col,Table( {
     DisplayName: LookUp(TestGG,Name="Book").'File name with extension'
     ,
     Value: LookUp(TestGG,Name="Book").'Link to item',
     AbsoluteUri: "",
     Id: "00000000-0000-0000-0000-000000000000"
     }))

    vxiaochenmsft_1-1652152400769.png

    vxiaochenmsft_2-1652152417184.png

     

    Note: 

    1\ This method does not work on mobile devices.

    2\ When you click on the file on the attachment control, it will open the file instead of downloading it directly.

     

    Best Regards,

    Wearsky

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard