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 / Retrieving an attachme...
Power Apps
Unanswered

Retrieving an attachment from SharePoint using ID from SQL Server

(0) ShareShare
ReportReport
Posted on by 47

Hello Community,

Is there a way in PowerApps to retrieve attachments from the SharePoint document library using a unique ID in SQL Server.

For example, I have a SQL server table with ID and Title Column. Also, I have a SharePoint Document library with ID and Attachment Column. Can I do a lookup function to retrieve the attachment based on ID?

Thanks in advance

Categories:
I have the same question (0)
  • timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    Hi @bakgou1 

    I see no reason why you can't use LookUp to attrieve the attachment based on ID.

    I'd suggest that you add a form to your screen and add a card with your attachment field.

    You would then set the Item property of your form to:

    LookUp(YourSharePointList, SharePointIDField = X)

    (where X is your SQL ID value)

  • bakgou1 Profile Picture
    47 on at

    Ok. I'll try it. Do you know how to Patch attachment to the SharePoint document library without using edit form in PowerApps? 

    Thank you!

  • timl Profile Picture
    36,713 Super User 2026 Season 1 on at

    Hi @bakgou1 

    You could copy the attachments control from a form, and paste it elsewhere on a screen and use it to retrieve the file that the user attaches.

    In general, it would probably be quicker and easier to use a form.

     

  • bakgou1 Profile Picture
    47 on at

    I did paste the attachment outside of the form but how do I Patch it to sharepoint list without using SubmitForm(Form1).

    Any clue?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard