Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Patch Attachment Control Content

(0) ShareShare
ReportReport
Posted on by 4,682 Super User 2025 Season 1

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:
  • Verified answer
    v-mengmli-msft Profile Picture
    on at
    Re: Patch Attachment Control Content

    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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard