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 / Add attachment to SP L...
Power Apps
Answered

Add attachment to SP List entry

(0) ShareShare
ReportReport
Posted on by 41

Hi all

 

Currently I use the Patch function with the Form.Updates but it's not working correctly. Somehow some Infos of the SP List entry just disappears when I patch with the Form.Updates. Without it's working correctly I just can't add an Attachment.

 

The entries that disappear are: Barcode, Category, Status, 

LFusGo_0-1669821659287.png

On the OnSelect properties on the Save button in the top right corner this code is attached:

 

Patch(
 Assets,
 Gallery1.Selected,
 {
 Barcode: Label2_2.Text,
 Title: TextInput1_1.Text,
 Category: {
 '@odata.type': "Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Value: Dropdown1_1.Selected.Value
 },
 Maintain: DataCardValue1_4.SelectedDate,
 Location: {
 '@odata.type': "Microsoft.Azure.Connectors.SharePoint.SPListExpandedUser",
 Value: Dropdown3_1.Selected.Value
 },
 Borrower: Blank(),
 Time: Blank(),
 Comment: Blank(),
 Status: {
 '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
 Id: 1,
 Value: "Available"
 }
 },
 EditForm1_2.Updates;
 
);
Navigate(ConfirmScreenAdmin);
UpdateContext({ShowPopupReset: false})

 

 

Thanks for any help!

 

Best

Lukas

Categories:
I have the same question (0)
  • Verified answer
    WiZey Profile Picture
    3,023 Moderator on at

    Hello @LFusGo ,

     

    That's because the "Updates" of your form only save the fields you're actually editing, whereas the other fields like "Category" and "Status" are filled in elsewhere.

     

    Try switching the values in "Patch()" and it should be better:

     

    Patch(
     source,
     Gallery.Selected,
     Form.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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard