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 / how to maintain attach...
Power Apps
Answered

how to maintain attachments in powerapps .?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi Mates,

SQL Table

TitleURL
Test1dfadfdajdfdbdlfbdf12nddfb

 

Form:

Title: Input Control

Attachment: Attachment control

 

as per requirement, I need to save attachments in the SharePoint folder. but actually, we have to use SQL table to save form/metadata field values.

Also when users edit the item corresponding attachment has to refer in form.

How do I save/maintain SharePoint only for attachment? 

During submitting a new item how to convert base64 formate and update that URL in SQL for corresponding attachment.

Please assist me. 

I have the same question (0)
  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    HI @Anonymous ,

     

    Do you want to save files into Sharepoint library then save the file’s URL into SQL server or Azure?

     

    If you do, you could use Power Automate to achieve the goal. Please refer to the video below:

    https://www.youtube.com/watch?v=3QaiM8SeWfM

     

    Summary steps:

    1. Use Attachments control to upload files.
    2. Create a Flow to save files to SP library and get URL of the file
    3. Save the URL into a variable.
    4. Save file name and URL to SQL Server with a Patch() function like:

     

    Patch(SQL_name,Defaults(SQL_name),{Title:First(AttachmentControl.Attachments).Name,URL: varURL})

     

     

    Best regards,
    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution  to help the other members find it.

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 762

#2
11manish Profile Picture

11manish 640

#3
Valantis Profile Picture

Valantis 548

Last 30 days Overall leaderboard