Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Adding attachments

(0) ShareShare
ReportReport
Posted on by 363

I am wanting to add attachments to a SharePoint list from my Power App. I have watched a few videos and none of them really fit.

One shows copying the attachment control from a form onto the canvas, but I haven't been able to even get past that part.

 

Ideally I want to use the add attachment as it suits the uploads I need, sometimes it can be an image, or pdf other times it may come from the camera control.

  • nshaw75 Profile Picture
    nshaw75 363 on at
    Re: Adding attachments

    Hi guy's

     

    Thanks again for the help. How would I adjust the formula to update the SP item as opposed to creating a new Item?

     

  • nshaw75 Profile Picture
    nshaw75 363 on at
    Re: Adding attachments

    Thank you, When I paused the video it was hard to decipher they were curly brackets. I have updated it an I have the attachments. Thanks again guys for the help

  • Verified answer
    Re: Adding attachments

    Hi @nshaw75,

    Modify as below:

    Patch('Permit Tracker', Defaults('Permit Tracker'),
    {
        Title: "TESTING PATCH"},
    Form3. Updates )
  • mmbr1606 Profile Picture
    mmbr1606 10,450 on at
    Re: Adding attachments

    the form3.Updates needs to be out side of the curly braces, look at the video again and set the braces correctly, then it should work

  • nshaw75 Profile Picture
    nshaw75 363 on at
    Re: Adding attachments

    Thanks guys @v-qiaqi-msft @mmbr1606 

     

    I have followed the advice and the video. The OnSelect function of my button is as follows

     

    Patch('Permit Tracker', Defaults('Permit Tracker'),
    (
        Title: "TESTING PATCH"
    Form3. Updates );
     
    The SP list updates, with the other records in the form, but the Attachments remain empty 😵
  • Verified answer
    mmbr1606 Profile Picture
    mmbr1606 10,450 on at
    Re: Adding attachments

    hey @nshaw75 

     

    this is the easiest, best  and fastest way to do it if u ask me:

    PowerApps - Patch attachment to SharePoint list (youtube.com)

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Re: Adding attachments

    Hi @nshaw75,

    I think you just need an Attachment control from a form, and a save button.

    Set the OnSelect property of save button as:

    Patch ( 'Source Data',Defaults('Source Data') , Form1_1 . Updates )

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,567

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,907

Leaderboard