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 modified list it...
Power Apps
Unanswered

Patch modified list items in a collection as new items to SharePoint list

(0) ShareShare
ReportReport
Posted on by 1,133

I have a collection whose schema is directly linked with my SharePoint list.

ClearCollect(
 colMPPDock,
 ShowColumns(
 'MPP Dock Dev',
 "Bay",
 "ForkTruckType",
 "MaterialType",
 "ID",
 "TruckStatus",
 "Author"
 )
);

The collection is connected to gallery and after all the updates on the gallery am successfully able to save to list using

Patch(
 'MPP Dock Dev',
 colMPPDock
);

Now the problem is when I get those items again in my gallery and modify them again, I would like to submit them as new items not as modified items. When ID column doesn't have a value in my collection, it is submitting as new item and when it has some value it is modifying existing item. I tried UpdateIf to update the ID to blank and also tried DropColumns on ID. Both didn't work. How can I submit modified items in collection as new items to SharePoint list. Hope my explanation is clear, otherwise happy to clarify.

 

Thanks and Regards,

Ramesh Mukka

Categories:
  • Fredrik_A Profile Picture
    3,644 Super User 2026 Season 2 on at

    Hello @RameshMukka 

     

    Have you tried using "Collect" instead of patch? That might work in the case where it updates a row when you want to submit a new one

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @RameshMukka 

    Collect('MPP Dock Dev',colMPPDock);

    Will add the items to the list

     

  • rameshmukka Profile Picture
    1,133 on at

    @StretchFredrik @Drrickryp 

     

    I get this below error when I used Collect('MPP Dock Dev',colMPPDock).

    RameshMukka_0-1660826702205.png

    I have the ID value in my collection whose values came from SharePoint list directly.

    RameshMukka_1-1660826769744.png

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard