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 / Patch Attachment Contr...
Power Apps
Answered

Patch Attachment Control Content

(0) ShareShare
ReportReport
Posted on by 5,331 Moderator

How do I Patch the Attachment control content along with the rest of the screen content?

Everything is in a Gallery.


Phineas_0-1704911177564.png

Patch(PO_Tracking_Davis_Production,
Defaults(PO_Tracking_Davis_Production),
{Title: New_PO_Machine_Serial_Number_Fld.Text,
Machine_Model: New_PO_Model_Fld.Selected.Value,
Customer_Name: New_Customer_Name_Fld.Text,
Sold_Date: New_PO_Sold_Date_DatePicker.SelectedDate,
Sold: If(New_PO_Sold_Checkbox.Value,{Value:"Yes"},{Value:"No"})
})

Categories:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @Phineas ,

     

    As far as I know, PowerApps doesn't support to update files to attachments column of SP list via Patch function.

     

    I recommend you use SubmitForm to update files to attachments column.

     

    There is a workaround for your reference:

    Create two buttons and a form with attachment field.

    1.OnSelect of Button1:

    Patch(PO_Tracking_Davis_Production,
    Defaults(PO_Tracking_Davis_Production),
    {Title: New_PO_Machine_Serial_Number_Fld.Text,
    Machine_Model: New_PO_Model_Fld.Selected.Value,
    Customer_Name: New_Customer_Name_Fld.Text,
    Sold_Date: New_PO_Sold_Date_DatePicker.SelectedDate,
    Sold: If(New_PO_Sold_Checkbox.Value,{Value:"Yes"},{Value:"No"})
    })

    2.OnSelected of Button2:

    SubmitForm(Form)

    3.Item of Form:

    First(SortByColumns(PO_Tracking_Davis_Production,"ID",SortOrder.Descending))

    vmengmlimsft_1-1704937486483.png

     

    Best regards,

    Rimmon

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 421

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 278 Super User 2026 Season 1

Last 30 days Overall leaderboard